Skip to content

Commit

Permalink
Make usage documentation for git-add consistent.
Browse files Browse the repository at this point in the history
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 <whee@smaertness.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Brian Hetro authored and Junio C Hamano committed Aug 26, 2007
1 parent 1560be1 commit 480611d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Documentation/git-add.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ git-add - Add file contents to the index

SYNOPSIS
--------
'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh] [--] <file>...
[verse]
'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh]
[--] <filepattern>...

DESCRIPTION
-----------
Expand Down Expand Up @@ -41,7 +43,7 @@ commit.

OPTIONS
-------
<file>...::
<filepattern>...::
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`
Expand Down
2 changes: 1 addition & 1 deletion builtin-add.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "revision.h"

static const char builtin_add_usage[] =
"git-add [-n] [-v] [-f] [--interactive | -i] [-u] [--] <filepattern>...";
"git-add [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh] [--] <filepattern>...";

static int take_worktree_changes;
static const char *excludes_file;
Expand Down

0 comments on commit 480611d

Please sign in to comment.