Skip to content

Commit 9f91da7

Browse files
rscharfegitster
authored andcommitted
revisions.txt: unspecify order of resolved parts of ^!
gitrevisions(7) says that <rev>^! resolves to <rev> and then all the parents of <rev>. revision.c::handle_revision_arg_1() actually adds all parents first, then <rev>. Change the documentation to leave the order unspecified, to avoid misleading readers. Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 793c211 commit 9f91da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/revisions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Revision Range Summary
363363

364364
'<rev>{caret}!', e.g. 'HEAD{caret}!'::
365365
A suffix '{caret}' followed by an exclamation mark is the same
366-
as giving commit '<rev>' and then all its parents prefixed with
366+
as giving commit '<rev>' and all its parents prefixed with
367367
'{caret}' to exclude them (and their ancestors).
368368

369369
'<rev>{caret}-<n>', e.g. 'HEAD{caret}-, HEAD{caret}-2'::

0 commit comments

Comments
 (0)