summaryrefslogtreecommitdiff
path: root/Documentation/git-commit.txt
diff options
context:
space:
mode:
authorAlexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>2019-11-19 16:48:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-11-20 04:01:53 (GMT)
commit66a25a7242e4e16480eab89da6557f90a2924c12 (patch)
treec55e4fddbdd412830a1fe929d74ecfd4e717eeda /Documentation/git-commit.txt
parent64bac8df972782b3b3dd2841699f076c7573c1db (diff)
downloadgit-66a25a7242e4e16480eab89da6557f90a2924c12.zip
git-66a25a7242e4e16480eab89da6557f90a2924c12.tar.gz
git-66a25a7242e4e16480eab89da6557f90a2924c12.tar.bz2
doc: commit: synchronize <pathspec> description
`git add` shows an example of good writing, follow it. This also better disambiguates <file>... header. Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-commit.txt')
-rw-r--r--Documentation/git-commit.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index afa7b75..a0c4497 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -13,7 +13,7 @@ SYNOPSIS
[-F <file> | -m <msg>] [--reset-author] [--allow-empty]
[--allow-empty-message] [--no-verify] [-e] [--author=<author>]
[--date=<date>] [--cleanup=<mode>] [--[no-]status]
- [-i | -o] [-S[<keyid>]] [--] [<file>...]
+ [-i | -o] [-S[<keyid>]] [--] [<pathspec>...]
DESCRIPTION
-----------
@@ -345,12 +345,13 @@ changes to tracked files.
\--::
Do not interpret any more arguments as options.
-<file>...::
- When files are given on the command line, the command
- commits the contents of the named files, without
- recording the changes already staged. The contents of
- these files are also staged for the next commit on top
- of what have been staged before.
+<pathspec>...::
+ When pathspec is given on the command line, commit the contents of
+ the files that match the pathspec without recording the changes
+ already added to the index. The contents of these files are also
+ staged for the next commit on top of what have been staged before.
++
+For more details, see the 'pathspec' entry in linkgit:gitglossary[7].
:git-commit: 1
include::date-formats.txt[]