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 <whee@smaertness.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Brian Hetro committed
Aug 25, 2007 at 23:20 UTC
480611d170e1c013b06a49e81a178fefd278b313
2 files changed
+5
-3
Documentation/git-add.txt
+4
-2
@@ -7,7 +7,9 @@ git-add - Add file contents to the index
7
8
SYNOPSIS
9
--------
10
-'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh] [--] <file>...
10
+[verse]
11
+'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh]
12
+ [--] <filepattern>...
13
14
DESCRIPTION
15
-----------
@@ -41,7 +43,7 @@ commit.
43
44
OPTIONS
45
-------
44
-<file>...::
46
+<filepattern>...::
47
Files to add content from. Fileglobs (e.g. `*.c`) can
48
be given to add all matching files. Also a
49
leading directory name (e.g. `dir` to add `dir/file1`
builtin-add.c
+1
-1
@@ -14,7 +14,7 @@
14
#include "revision.h"
15
16
static const char builtin_add_usage[] =
17
-"git-add [-n] [-v] [-f] [--interactive | -i] [-u] [--] <filepattern>...";
17
+"git-add [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh] [--] <filepattern>...";
18
19
static int take_worktree_changes;
20
static const char *excludes_file;