diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-11-19 10:55:40 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-19 10:55:40 -0800 |
| commit | 7ccfc262d7850f2eddd860b31b9f69a152687702 (patch) | |
| tree | 4fbe93620681602d30a60c2af84135bcce7d1c5c /refs/debug.c | |
| parent | 13134cecb08604fc2a4d30b6f9f941f6323e6de2 (diff) | |
| parent | c113f4ca4dbba5529af645f7d7837c7dae12b403 (diff) | |
Merge branch 'kn/refs-optim-cleanup'
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, |
