ref-filter: fix outdated comment on in_commit_list
authorDerrick Stolee <dstolee@microsoft.com>
Wed, 25 Apr 2018 14:37:54 +0000 (14:37 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 04:39:53 +0000 (13:39 +0900)
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>
ref-filter.c
index cffd8bf3ce72abfcc9ef9ca1fa3f968c69539695..aff24d93beef5a910c21a031e69afbada80c4b79 100644 (file)
@@ -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.
  */
 static enum contains_result contains_test(struct commit *candidate,