From: Brian Hetro Date: Sun, 26 Aug 2007 03:20:06 +0000 (-0400) Subject: Make usage documentation for git-add consistent. X-Git-Tag: v1.5.3-rc7~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=480611d170e1c013b06a49e81a178fefd278b313;p=git.git Make usage documentation for git-add consistent. The usage string for the executable was missing --refresh. In addition, the documentation referred to "file", but the usage string referred to "filepattern". Updated the documentation to "filepattern", as git-add does handle patterns. Signed-off-by: Brian Hetro Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index 3383aca9a..e5efbc9a4 100644 --- a/Documentation/git-add.txt +++ b/Documentation/git-add.txt @@ -7,7 +7,9 @@ git-add - Add file contents to the index SYNOPSIS -------- -'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh] [--] ... +[verse] +'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh] + [--] ... DESCRIPTION ----------- @@ -41,7 +43,7 @@ commit. OPTIONS ------- -...:: +...:: Files to add content from. Fileglobs (e.g. `*.c`) can be given to add all matching files. Also a leading directory name (e.g. `dir` to add `dir/file1` diff --git a/builtin-add.c b/builtin-add.c index 3dd4ded93..b08e68831 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -14,7 +14,7 @@ #include "revision.h" static const char builtin_add_usage[] = -"git-add [-n] [-v] [-f] [--interactive | -i] [-u] [--] ..."; +"git-add [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh] [--] ..."; static int take_worktree_changes; static const char *excludes_file;