summaryrefslogtreecommitdiffstats
path: root/reflog.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2023-03-28 15:58:48 +0200
committerJunio C Hamano <gitster@pobox.com>2023-03-28 16:36:45 +0200
commitecb5091fd4301ac647db0bd2504112b38f7ee06d (patch)
tree3b068d4dae3a26444da0fa32e8efa700a50deab6 /reflog.c
parentcocci: apply the "commit-reach.h" part of "the_repository.pending" (diff)
downloadgit-ecb5091fd4301ac647db0bd2504112b38f7ee06d.tar.xz
git-ecb5091fd4301ac647db0bd2504112b38f7ee06d.zip
cocci: apply the "commit.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "commit.h". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reflog.c')
-rw-r--r--reflog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reflog.c b/reflog.c
index 04630f56ec..6e8362e7a2 100644
--- a/reflog.c
+++ b/reflog.c
@@ -186,7 +186,7 @@ static void mark_reachable(struct expire_reflog_policy_cb *cb)
struct commit *commit = pop_commit(&pending);
if (commit->object.flags & REACHABLE)
continue;
- if (parse_commit(commit))
+ if (repo_parse_commit(the_repository, commit))
continue;
commit->object.flags |= REACHABLE;
if (commit->date < expire_limit) {