-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add -u / --auto-stage command-line parameter to toggle autostage #107
Comments
I'm just wondering why turning it on always is not satisfactory already? |
Usually there is some file that is not to be staged. In all other cases, it would be useful to stage all files. As discussed, this could be worked around by temporarily setting config options in an alias, but it seemed to me rather unwieldy instead of a switch like |
I see, that makes sense. Myself however I commit the non-fixup files first, and only then run absorb, so I don't have this issue. But fair enough. We could then also have a |
I agree with you about the need of being able to disable a possible auto stage mode enabled by the conf. |
i could implement this. @tummychow a UX question - if user specifies the to me I think (B) makes more sense. we could have an additional flag like |
yeah i'm fine with having both personally. i prefer to stick to upstream ux where possible, but upstream doesn't set a great example here, eg git add has -A and -u, and git commit has -a which is like git add -u, etc. for now let's start with B (match the behavior of the git config flag). that way, we don't have to tackle questions of what to do with unabsorbed hunks (as we discussed back here) |
As vouched for by @teto, @ccoVeille and my humble self in the aftermath of #98
While, in theory, this is easily achieved by a temporary git config value as well. The thinking was that in practice, this to be rather an occasional opt-in rather than opt-out.
However, also in view of the upstream issue: libgit2/libgit2#385 , a cli flag might be more practical.
The text was updated successfully, but these errors were encountered: