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/packed-backend.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/packed-backend.c')
| -rw-r--r-- | refs/packed-backend.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/refs/packed-backend.c b/refs/packed-backend.c index 1ab0c50393..10062fd8b6 100644 --- a/refs/packed-backend.c +++ b/refs/packed-backend.c @@ -1773,8 +1773,8 @@ cleanup: return ret; } -static int packed_pack_refs(struct ref_store *ref_store UNUSED, - struct pack_refs_opts *pack_opts UNUSED) +static int packed_optimize(struct ref_store *ref_store UNUSED, + struct refs_optimize_opts *opts UNUSED) { /* * Packed refs are already packed. It might be that loose refs @@ -2129,7 +2129,7 @@ struct ref_storage_be refs_be_packed = { .transaction_finish = packed_transaction_finish, .transaction_abort = packed_transaction_abort, - .pack_refs = packed_pack_refs, + .optimize = packed_optimize, .rename_ref = NULL, .copy_ref = NULL, |
