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.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.c')
| -rw-r--r-- | refs.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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); } |
