diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-12-26 11:42:06 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-12-26 11:42:06 +0900 |
commit | b0c61be3209b41c26684f813714c8dabb71c34b9 (patch) | |
tree | ced12d3fa84a9a0cf26b918fe9dc0447c29d1d2d /reflog.c | |
parent | c637bd230dd705b39b22251110eb1fcc8d15b075 (diff) | |
parent | b07a819c05f47ac07dec9704c121a2cfb4857ebe (diff) | |
download | git-b0c61be3209b41c26684f813714c8dabb71c34b9.tar.gz |
Merge branch 'rs/reflog-expiry-cleanup'
Code clean-up.
* rs/reflog-expiry-cleanup:
reflog: clear leftovers in reflog_expiry_cleanup()
Diffstat (limited to 'reflog.c')
-rw-r--r-- | reflog.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -193,7 +193,6 @@ static void mark_reachable(struct expire_reflog_policy_cb *cb) commit_list_insert(commit, &leftover); continue; } - commit->object.flags |= REACHABLE; parent = commit->parents; while (parent) { commit = parent->item; @@ -371,6 +370,9 @@ void reflog_expiry_cleanup(void *cb_data) clear_commit_marks(cb->tip_commit, REACHABLE); break; } + for (elem = cb->mark_list; elem; elem = elem->next) + clear_commit_marks(elem->item, REACHABLE); + free_commit_list(cb->mark_list); } int count_reflog_ent(struct object_id *ooid UNUSED, |