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>
Derrick Stolee committed
Apr 25, 2018 at 14:37 UTC
8fb572af5f4e3bef2415ac2dba8d76d37235b489
1 file changed
+1
-1
ref-filter.c
+1
-1
@@ -1582,7 +1582,7 @@ static int in_commit_list(const struct commit_list *want, struct commit *c)
1582
}
1583
1584
/*
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.
1586
* Do not recurse to find out, though, but return -1 if inconclusive.
1587
*/
1588
static enum contains_result contains_test(struct commit *candidate,