Skip to content

Conversation

@ethomson
Copy link
Member

@ethomson ethomson commented Jul 3, 2014

Users of Stage() who want to pass a glob or a directory may expect
Stage() to respect ignored files. Add a StageOptions to allow this
behavior, but keep the default to including ignored for backcompat.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old overloads should be retained as [Obsolete].

@ethomson
Copy link
Member Author

ethomson commented Jul 8, 2014

Thanks @dahlbyk , should be all fixed up.

@dahlbyk
Copy link
Member

dahlbyk commented Jul 8, 2014

should be all fixed up.

👌

@ethomson
Copy link
Member Author

@nulltoken, did you have any thoughts on this?

@nulltoken
Copy link
Member

but keep the default to including ignored for backcompat

@ethomson I think I'd rather prefer breaking the behavior and acting more like git.git by default.

@ethomson
Copy link
Member Author

@nulltoken Okay, the new behavior is for Stage to not stage ignored files by default, now users must set StageOptions.IncludeIgnored = true in order to include them.

Stage() now respects ignore files by default, similar to git.git.
Users accustomed to the old behavior may use the new StageOptions
class (in particular the IncludeIgnored bool) to override this
behavior.
@ethomson
Copy link
Member Author

Okay, @nulltoken and @dahlbyk, I corrected the text in the comments. This should be ready for merge!

@nulltoken nulltoken merged commit cf8c5fb into libgit2:vNext Aug 23, 2014
@nulltoken
Copy link
Member

💥

@nulltoken nulltoken added this to the v0.19.0 milestone Aug 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants