]> git.ipfire.org Git - thirdparty/git.git/commitdiff
revisions.txt: unspecify order of resolved parts of ^!
authorRené Scharfe <l.s.r@web.de>
Sat, 1 Oct 2022 10:26:34 +0000 (12:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 1 Oct 2022 22:58:36 +0000 (15:58 -0700)
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 <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/revisions.txt

index e3e350126df8bec3022570a295c632b840a8a4ab..0d2e55d781912c36d0131cb9aed790d623f70708 100644 (file)
@@ -363,7 +363,7 @@ Revision Range Summary
 
 '<rev>{caret}!', e.g. 'HEAD{caret}!'::
   A suffix '{caret}' followed by an exclamation mark is the same
-  as giving commit '<rev>' and then all its parents prefixed with
+  as giving commit '<rev>' and all its parents prefixed with
   '{caret}' to exclude them (and their ancestors).
 
 '<rev>{caret}-<n>', e.g. 'HEAD{caret}-, HEAD{caret}-2'::