Skip to content

Commit b501198

Browse files
committed
doc: mention rev-list --ancestry-path restrictions
The rev-list documention 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]>
1 parent cc01bad commit b501198

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
@@ -412,7 +412,8 @@ Default mode::
412412

413413
--ancestry-path[=<commit>]::
414414
When given a range of commits to display (e.g. 'commit1..commit2'
415-
or 'commit2 {caret}commit1'), only display commits in that range
415+
or 'commit2 {caret}commit1'), and a commit <commit> in that range,
416+
only display commits in that range
416417
that are ancestors of <commit>, descendants of <commit>, or
417418
<commit> itself. If no commit is specified, use 'commit1' (the
418419
excluded part of the range) as <commit>. Can be passed multiple

0 commit comments

Comments
 (0)