-
Notifications
You must be signed in to change notification settings - Fork 138
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
Teach git stash
and git commit
the -A
option
#231
Comments
Since |
Maybe because it is confusing that the same mode has different short options for different commands? I mean, |
I see. Are you suggesting that |
My personal preference would be to have one short option, and one that is consistent with all the other commands. Whether this is the way forward will have to be hashed out when this ticket is addressed. |
If this is the case, I think we should remove the "good first issue" label from this issue since it has more impact than a "good first issue" should do. |
The
git add -A
command can be used to conveniently add all files, whether they are tracked or not yet tracked (excluding the ones ignored via.gitignore
/.git/info/excludes
).This convenience would come in quite nicely in the
stash
/commit
commands, too (in the latter case, many test cases could be simplified using this new option).The
git stash
command already has the--include-untracked
option that does this, but not the short-and-sweet short option-A
. Thegit commit
command does not have any equivalent (it has the--untracked-files
option, but that is really just modifying the output ofgit status
).Sadly, we cannot add
--all
, too, as that is already used for something different ingit stash
: it includes the ignored files, too. Likewise,git commit --all
commits all tracked files, and does not add the untracked files (unlikegit add --all
).The text was updated successfully, but these errors were encountered: