summaryrefslogtreecommitdiff
path: root/commit-reach.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-10-02 17:19:21 -0400
committerJunio C Hamano <gitster@pobox.com>2018-10-04 03:42:48 -0700
commite43d2dcce1db256e95b90f89e06d62834a1d361c (patch)
tree72b717680d6b340c71a970c29e7996d0e5b1ec35 /commit-reach.c
parentfe8321ec057f9231c26c29b364721568e58040f7 (diff)
downloadgit-e43d2dcce1db256e95b90f89e06d62834a1d361c.tar.gz
more oideq/hasheq conversions
We added faster equality-comparison functions for hashes in 14438c4497 (introduce hasheq() and oideq(), 2018-08-28). A few topics were in-flight at the time, and can now be converted. This covers all spots found by "make coccicheck" in master (the coccicheck results were tweaked by hand for style). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-reach.c')
-rw-r--r--commit-reach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit-reach.c b/commit-reach.c
index 00e5ceee6f..a7808430e1 100644
--- a/commit-reach.c
+++ b/commit-reach.c
@@ -426,7 +426,7 @@ struct contains_stack {
static int in_commit_list(const struct commit_list *want, struct commit *c)
{
for (; want; want = want->next)
- if (!oidcmp(&want->item->object.oid, &c->object.oid))
+ if (oideq(&want->item->object.oid, &c->object.oid))
return 1;
return 0;
}