diff options
| author | Karthik Nayak <karthik.188@gmail.com> | 2025-10-20 10:18:30 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-04 07:35:12 -0800 |
| commit | 2cd99d984122f7f1cd7c3b153ee0a0d566831b30 (patch) | |
| tree | 60a280233ea75004cfec291766755959ea0f56e3 /refs/reftable-backend.c | |
| parent | refs: move to using the '.optimize' functions (diff) | |
| download | git-2cd99d984122f7f1cd7c3b153ee0a0d566831b30.tar.gz git-2cd99d984122f7f1cd7c3b153ee0a0d566831b30.zip | |
refs: rename 'pack_refs_opts' to 'refs_optimize_opts'
The previous commit removed all references to 'pack_refs()' within
the refs subsystem. Continue this cleanup by also renaming
'pack_refs_opts' to 'refs_optimize_opts' and the respective flags
accordingly. Keeping the naming consistent will make the code easier to
maintain.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
| -rw-r--r-- | refs/reftable-backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/refs/reftable-backend.c b/refs/reftable-backend.c index 43cc66a48e..c23c45f3bf 100644 --- a/refs/reftable-backend.c +++ b/refs/reftable-backend.c @@ -1701,7 +1701,7 @@ done: } static int reftable_be_optimize(struct ref_store *ref_store, - struct pack_refs_opts *opts) + struct refs_optimize_opts *opts) { struct reftable_ref_store *refs = reftable_be_downcast(ref_store, REF_STORE_WRITE | REF_STORE_ODB, "optimize_refs"); @@ -1715,7 +1715,7 @@ static int reftable_be_optimize(struct ref_store *ref_store, if (!stack) stack = refs->main_backend.stack; - if (opts->flags & PACK_REFS_AUTO) + if (opts->flags & REFS_OPTIMIZE_AUTO) ret = reftable_stack_auto_compact(stack); else ret = reftable_stack_compact_all(stack, NULL); |
