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 <kaikopone@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Kai Koponen committed Dec 3, 2024 at 12:14 UTC bc1a980759bc61a426c26d3b47e2d77a708a038b
1 file changed +2 -1
Documentation/rev-list-options.txt
+2 -1
@@ -401,7 +401,8 @@ Default mode::
401
402 --ancestry-path[=<commit>]::
403 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
406 that are ancestors of <commit>, descendants of <commit>, or
407 <commit> itself. If no commit is specified, use 'commit1' (the
408 excluded part of the range) as <commit>. Can be passed multiple