aboutsummaryrefslogtreecommitdiffstats
path: root/refs/debug.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-11-04 07:31:19 -0800
committerJunio C Hamano <gitster@pobox.com>2025-11-04 07:31:19 -0800
commit5ab9228d7a2de8896948232f2b32c34b4e192166 (patch)
tree65183e13ad8aeebb64f2e0ec08752352bb7bbdab /refs/debug.c
parentSync with Git 2.52-rc0 (diff)
downloadgit-5ab9228d7a2de8896948232f2b32c34b4e192166.tar.gz
git-5ab9228d7a2de8896948232f2b32c34b4e192166.zip
Revert "Merge branch 'kn/refs-optim-cleanup' into next"
This reverts commit 8c2d7a4413436c0f91af0c0ab978cba8af905696, reversing changes made to 8ac48a10de61267858d66383c34833e55a5e9d02.
Diffstat (limited to 'refs/debug.c')
-rw-r--r--refs/debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/refs/debug.c b/refs/debug.c
index 54f409c249..f38991c02a 100644
--- a/refs/debug.c
+++ b/refs/debug.c
@@ -124,11 +124,11 @@ static int debug_transaction_abort(struct ref_store *refs,
return res;
}
-static int debug_optimize(struct ref_store *ref_store, struct refs_optimize_opts *opts)
+static int debug_pack_refs(struct ref_store *ref_store, struct pack_refs_opts *opts)
{
struct debug_ref_store *drefs = (struct debug_ref_store *)ref_store;
- int res = drefs->refs->be->optimize(drefs->refs, opts);
- trace_printf_key(&trace_refs, "optimize: %d\n", res);
+ int res = drefs->refs->be->pack_refs(drefs->refs, opts);
+ trace_printf_key(&trace_refs, "pack_refs: %d\n", res);
return res;
}
@@ -439,7 +439,7 @@ struct ref_storage_be refs_be_debug = {
.transaction_finish = debug_transaction_finish,
.transaction_abort = debug_transaction_abort,
- .optimize = debug_optimize,
+ .pack_refs = debug_pack_refs,
.rename_ref = debug_rename_ref,
.copy_ref = debug_copy_ref,