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>
This commit is contained in:

committed by
Junio C Hamano

parent
1560be16b9
commit
480611d170
@ -7,7 +7,9 @@ git-add - Add file contents to the index
|
|||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh] [--] <file>...
|
[verse]
|
||||||
|
'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--refresh]
|
||||||
|
[--] <filepattern>...
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
@ -41,7 +43,7 @@ commit.
|
|||||||
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-------
|
-------
|
||||||
<file>...::
|
<filepattern>...::
|
||||||
Files to add content from. Fileglobs (e.g. `*.c`) can
|
Files to add content from. Fileglobs (e.g. `*.c`) can
|
||||||
be given to add all matching files. Also a
|
be given to add all matching files. Also a
|
||||||
leading directory name (e.g. `dir` to add `dir/file1`
|
leading directory name (e.g. `dir` to add `dir/file1`
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include "revision.h"
|
#include "revision.h"
|
||||||
|
|
||||||
static const char builtin_add_usage[] =
|
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 int take_worktree_changes;
|
||||||
static const char *excludes_file;
|
static const char *excludes_file;
|
||||||
|
Reference in New Issue
Block a user