mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
ref-filter: fix outdated comment on in_commit_list
The in_commit_list() method does not check the parents of the candidate for containment in the list. Fix the comment that incorrectly states that it does. Reported-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
279ffad17d
commit
8fb572af5f
|
@ -1582,7 +1582,7 @@ static int in_commit_list(const struct commit_list *want, struct commit *c)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Test whether the candidate or one of its parents is contained in the list.
|
* Test whether the candidate is contained in the list.
|
||||||
* Do not recurse to find out, though, but return -1 if inconclusive.
|
* Do not recurse to find out, though, but return -1 if inconclusive.
|
||||||
*/
|
*/
|
||||||
static enum contains_result contains_test(struct commit *candidate,
|
static enum contains_result contains_test(struct commit *candidate,
|
||||||
|
|
Loading…
Reference in a new issue