summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-04-16 04:07:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-17 06:42:43 (GMT)
commit733e064d9876ce33c004f1926fe64c9edb52a087 (patch)
tree9b83f69838c766b69fae6c668cf6df4b5bbd1a45 /Documentation
parent8779351dd7ee54c6ef2a7007670bad75a86edc75 (diff)
downloadgit-733e064d9876ce33c004f1926fe64c9edb52a087.zip
git-733e064d9876ce33c004f1926fe64c9edb52a087.tar.gz
git-733e064d9876ce33c004f1926fe64c9edb52a087.tar.bz2
doc/revisions: remove brackets from rev^-n shorthand
Given that other instances of "{...}" in the revision documentation represent literal characters of revision specifications, describing the rev^-n shorthand as "<rev>^-{<n>}" incorrectly suggests that something like "master^-{1}" is an acceptable form. Signed-off-by: Kyle Meyer <kyle@kyleam.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/revisions.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/revisions.txt b/Documentation/revisions.txt
index ba11b9c..c536219 100644
--- a/Documentation/revisions.txt
+++ b/Documentation/revisions.txt
@@ -291,7 +291,7 @@ The 'r1{caret}@' notation means all parents of 'r1'.
The 'r1{caret}!' notation includes commit 'r1' but excludes all of its parents.
By itself, this notation denotes the single commit 'r1'.
-The '<rev>{caret}-{<n>}' notation includes '<rev>' but excludes the <n>th
+The '<rev>{caret}-<n>' notation includes '<rev>' but excludes the <n>th
parent (i.e. a shorthand for '<rev>{caret}<n>..<rev>'), with '<n>' = 1 if
not given. This is typically useful for merge commits where you
can just pass '<commit>{caret}-' to get all the commits in the branch
@@ -333,7 +333,7 @@ Revision Range Summary
as giving commit '<rev>' and then all its parents prefixed with
'{caret}' to exclude them (and their ancestors).
-'<rev>{caret}-{<n>}', e.g. 'HEAD{caret}-, HEAD{caret}-2'::
+'<rev>{caret}-<n>', e.g. 'HEAD{caret}-, HEAD{caret}-2'::
Equivalent to '<rev>{caret}<n>..<rev>', with '<n>' = 1 if not
given.