aboutsummaryrefslogtreecommitdiffstats
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-11-04 07:49:07 -0800
committerJunio C Hamano <gitster@pobox.com>2025-11-04 07:49:07 -0800
commitdbab18969a1b7b6f2d2b6f34c079ba65867d39ea (patch)
treeaf45ad28b7da89cd69933276a85bd84fc4306482 /refs.c
parentMerge branch 'ps/ref-peeled-tags' into next (diff)
parentt/pack-refs-tests: move the 'test_done' to callees (diff)
downloadgit-dbab18969a1b7b6f2d2b6f34c079ba65867d39ea.tar.gz
git-dbab18969a1b7b6f2d2b6f34c079ba65867d39ea.zip
Merge branch 'kn/refs-optim-cleanup' into next
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.c')
-rw-r--r--refs.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/refs.c b/refs.c
index a41a94ae55..0d0831f29b 100644
--- a/refs.c
+++ b/refs.c
@@ -2313,13 +2313,7 @@ void base_ref_store_init(struct ref_store *refs, struct repository *repo,
refs->gitdir = xstrdup(path);
}
-/* backend functions */
-int refs_pack_refs(struct ref_store *refs, struct pack_refs_opts *opts)
-{
- return refs->be->pack_refs(refs, opts);
-}
-
-int refs_optimize(struct ref_store *refs, struct pack_refs_opts *opts)
+int refs_optimize(struct ref_store *refs, struct refs_optimize_opts *opts)
{
return refs->be->optimize(refs, opts);
}