Skip to content

Commit 8fb572a

Browse files
derrickstoleegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 279ffad commit 8fb572a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ref-filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ static int in_commit_list(const struct commit_list *want, struct commit *c)
15821582
}
15831583

15841584
/*
1585-
* Test whether the candidate or one of its parents is contained in the list.
1585+
* Test whether the candidate is contained in the list.
15861586
* Do not recurse to find out, though, but return -1 if inconclusive.
15871587
*/
15881588
static enum contains_result contains_test(struct commit *candidate,

0 commit comments

Comments
 (0)