Skip to content

Commit 733e064

Browse files
kyleamgitster
authored andcommitted
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 <[email protected]> Reviewed-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8779351 commit 733e064

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/revisions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ The 'r1{caret}@' notation means all parents of 'r1'.
291291
The 'r1{caret}!' notation includes commit 'r1' but excludes all of its parents.
292292
By itself, this notation denotes the single commit 'r1'.
293293

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
295295
parent (i.e. a shorthand for '<rev>{caret}<n>..<rev>'), with '<n>' = 1 if
296296
not given. This is typically useful for merge commits where you
297297
can just pass '<commit>{caret}-' to get all the commits in the branch
@@ -333,7 +333,7 @@ Revision Range Summary
333333
as giving commit '<rev>' and then all its parents prefixed with
334334
'{caret}' to exclude them (and their ancestors).
335335

336-
'<rev>{caret}-{<n>}', e.g. 'HEAD{caret}-, HEAD{caret}-2'::
336+
'<rev>{caret}-<n>', e.g. 'HEAD{caret}-, HEAD{caret}-2'::
337337
Equivalent to '<rev>{caret}<n>..<rev>', with '<n>' = 1 if not
338338
given.
339339

0 commit comments

Comments
 (0)