diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-11-08 10:05:34 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-08 10:05:34 -0800 |
| commit | 8802bd6cf2e44e091440a1a6eb48873a147fcf5b (patch) | |
| tree | 26686d8e87fafd4dd00b9c76fea6ab8b01a57dba /refs/debug.c | |
| parent | Merge branch 'ps/ref-peeled-tags' into jch (diff) | |
| parent | t/pack-refs-tests: move the 'test_done' to callees (diff) | |
| download | git-8802bd6cf2e44e091440a1a6eb48873a147fcf5b.tar.gz git-8802bd6cf2e44e091440a1a6eb48873a147fcf5b.zip | |
Merge branch 'kn/refs-optim-cleanup' into jch
Code clean-up.
* kn/refs-optim-cleanup:
t/pack-refs-tests: move the 'test_done' to callees
refs: rename 'pack_refs_opts' to 'refs_optimize_opts'
refs: move to using the '.optimize' functions
Diffstat (limited to 'refs/debug.c')
| -rw-r--r-- | refs/debug.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/refs/debug.c b/refs/debug.c index f38991c02a..54f409c249 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_pack_refs(struct ref_store *ref_store, struct pack_refs_opts *opts) +static int debug_optimize(struct ref_store *ref_store, struct refs_optimize_opts *opts) { struct debug_ref_store *drefs = (struct debug_ref_store *)ref_store; - int res = drefs->refs->be->pack_refs(drefs->refs, opts); - trace_printf_key(&trace_refs, "pack_refs: %d\n", res); + int res = drefs->refs->be->optimize(drefs->refs, opts); + trace_printf_key(&trace_refs, "optimize: %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, - .pack_refs = debug_pack_refs, + .optimize = debug_optimize, .rename_ref = debug_rename_ref, .copy_ref = debug_copy_ref, |
