summaryrefslogtreecommitdiff
path: root/ref-filter.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-04-25 14:37:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-02 04:39:53 (GMT)
commit8fb572af5f4e3bef2415ac2dba8d76d37235b489 (patch)
tree4cf0fc62b77346880b63f9ed6ba826b931e5fd56 /ref-filter.c
parent279ffad17dcc3b72aa7cb5c73fb7aa8eddeed9da (diff)
downloadgit-8fb572af5f4e3bef2415ac2dba8d76d37235b489.zip
git-8fb572af5f4e3bef2415ac2dba8d76d37235b489.tar.gz
git-8fb572af5f4e3bef2415ac2dba8d76d37235b489.tar.bz2
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>
Diffstat (limited to 'ref-filter.c')
-rw-r--r--ref-filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ref-filter.c b/ref-filter.c
index cffd8bf..aff24d9 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,