зеркало из https://github.com/microsoft/git.git
Merge branch 'rs/reflog-expiry-cleanup' into maint-2.39
Code clean-up. * rs/reflog-expiry-cleanup: reflog: clear leftovers in reflog_expiry_cleanup()
This commit is contained in:
Коммит
651b4430d1
4
reflog.c
4
reflog.c
|
@ -193,7 +193,6 @@ static void mark_reachable(struct expire_reflog_policy_cb *cb)
|
||||||
commit_list_insert(commit, &leftover);
|
commit_list_insert(commit, &leftover);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
commit->object.flags |= REACHABLE;
|
|
||||||
parent = commit->parents;
|
parent = commit->parents;
|
||||||
while (parent) {
|
while (parent) {
|
||||||
commit = parent->item;
|
commit = parent->item;
|
||||||
|
@ -371,6 +370,9 @@ void reflog_expiry_cleanup(void *cb_data)
|
||||||
clear_commit_marks(cb->tip_commit, REACHABLE);
|
clear_commit_marks(cb->tip_commit, REACHABLE);
|
||||||
break;
|
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,
|
int count_reflog_ent(struct object_id *ooid UNUSED,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче