summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Derrick Stolee <dstolee@microsoft.com>2018-04-25 14:37:54 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-02 13:39:53 +0900
commit8fb572af5f4e3bef2415ac2dba8d76d37235b489 (patch)
tree4cf0fc62b77346880b63f9ed6ba826b931e5fd56
parentcoccinelle: avoid wrong transformation suggestions from commit.cocci (diff)
downloadtgif-8fb572af5f4e3bef2415ac2dba8d76d37235b489.tar.xz
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>
-rw-r--r--ref-filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ref-filter.c b/ref-filter.c
index cffd8bf3ce..aff24d93be 100644
--- a/ref-filter.c
+++ b/ref-filter.c
@@ -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,