[PATCHv2 1/3] git-add: make -A description clearer vs. -u
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Feb 27, 2011, 15:50 UTC
- Message-ID
- <059f131e50675ac53d5d304a51530984e1b7b8a8.1298821535.git.git@drmicha.warpmail.net>
- In-Reply-To
- <4D68D630.9000608@drmicha.warpmail.net>
Currently, it sounds as if "notice removal of files" distinguishes "-A" from "-u", and there is no mention of the worktree.
But both notice the removal, and only "-A" adds changes from untracked files. Say so.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> --- builtin/add.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin/add.c b/builtin/add.c index f8e51f9..f7a17e4 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -322,7 +322,7 @@ static struct option builtin_add_options[] = { OPT__FORCE(&ignored_too, "allow adding otherwise ignored files"), OPT_BOOLEAN('u', "update", &take_worktree_changes, "update tracked files"), OPT_BOOLEAN('N', "intent-to-add", &intent_to_add, "record only the fact that the path will be added later"), - OPT_BOOLEAN('A', "all", &addremove, "add all, noticing removal of tracked files"), + OPT_BOOLEAN('A', "all", &addremove, "add changes from all tracked and untracked files"), OPT_BOOLEAN( 0 , "refresh", &refresh_only, "don't add, only refresh the index"), OPT_BOOLEAN( 0 , "ignore-errors", &ignore_add_errors, "just skip files which cannot be added because of errors"), OPT_BOOLEAN( 0 , "ignore-missing", &ignore_missing, "check if - even missing - files are ignored in dry run"),
-- 1.7.4.1.224.gefc87