Skip to content

Commit 20c4495

Browse files
committed
doc: commit: unify <pathspec> description
Synchronize it to `git add`, which has a pretty good description. This also better disambiguates <file>... header. Signed-off-by: Alexandr Miloslavskiy <[email protected]>
1 parent d72d4f1 commit 20c4495

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Documentation/git-commit.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SYNOPSIS
1313
[-F <file> | -m <msg>] [--reset-author] [--allow-empty]
1414
[--allow-empty-message] [--no-verify] [-e] [--author=<author>]
1515
[--date=<date>] [--cleanup=<mode>] [--[no-]status]
16-
[-i | -o] [-S[<keyid>]] [--] [<file>...]
16+
[-i | -o] [-S[<keyid>]] [--] [<pathspec>...]
1717

1818
DESCRIPTION
1919
-----------
@@ -345,12 +345,14 @@ changes to tracked files.
345345
\--::
346346
Do not interpret any more arguments as options.
347347

348-
<file>...::
349-
When files are given on the command line, the command
350-
commits the contents of the named files, without
351-
recording the changes already staged. The contents of
352-
these files are also staged for the next commit on top
353-
of what have been staged before.
348+
<pathspec>...::
349+
When pathspec is given on the command line, commit the contents of
350+
the files that match the pathspec without recording the changes
351+
already added to the index. The contents of these files are also
352+
staged for the next commit on top of what have been staged before.
353+
+
354+
For more details about the <pathspec> syntax, see the 'pathspec' entry
355+
in linkgit:gitglossary[7].
354356

355357
:git-commit: 1
356358
include::date-formats.txt[]

0 commit comments

Comments
 (0)