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>
Kyle Meyer committed
Apr 16, 2017 at 00:07 UTC
733e064d9876ce33c004f1926fe64c9edb52a087
1 file changed
+2
-2
Documentation/revisions.txt
+2
-2
@@ -291,7 +291,7 @@ The 'r1{caret}@' notation means all parents of 'r1'.
291
The 'r1{caret}!' notation includes commit 'r1' but excludes all of its parents.
292
By itself, this notation denotes the single commit 'r1'.
293
294
-The '<rev>{caret}-{<n>}' notation includes '<rev>' but excludes the <n>th
294
+The '<rev>{caret}-<n>' notation includes '<rev>' but excludes the <n>th
295
parent (i.e. a shorthand for '<rev>{caret}<n>..<rev>'), with '<n>' = 1 if
296
not given. This is typically useful for merge commits where you
297
can just pass '<commit>{caret}-' to get all the commits in the branch
@@ -333,7 +333,7 @@ Revision Range Summary
333
as giving commit '<rev>' and then all its parents prefixed with
334
'{caret}' to exclude them (and their ancestors).
335
336
-'<rev>{caret}-{<n>}', e.g. 'HEAD{caret}-, HEAD{caret}-2'::
336
+'<rev>{caret}-<n>', e.g. 'HEAD{caret}-, HEAD{caret}-2'::
337
Equivalent to '<rev>{caret}<n>..<rev>', with '<n>' = 1 if not
338
given.
339