Skip to content

Commit bc1a980

Browse files
gkaikoponengitster
authored andcommitted
doc: mention rev-list --ancestry-path restrictions
The rev-list documentation doesn't mention that the given commit must be in the specified commit range, leading to unexpected results. Signed-off-by: Kai Koponen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dbecc61 commit bc1a980

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/rev-list-options.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ Default mode::
401401

402402
--ancestry-path[=<commit>]::
403403
When given a range of commits to display (e.g. 'commit1..commit2'
404-
or 'commit2 {caret}commit1'), only display commits in that range
404+
or 'commit2 {caret}commit1'), and a commit <commit> in that range,
405+
only display commits in that range
405406
that are ancestors of <commit>, descendants of <commit>, or
406407
<commit> itself. If no commit is specified, use 'commit1' (the
407408
excluded part of the range) as <commit>. Can be passed multiple

0 commit comments

Comments
 (0)