aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2025-10-20 10:18:29 +0200
committerJunio C Hamano <gitster@pobox.com>2025-10-23 10:00:37 -0700
commit0f8251296e34c063d95f5806a07235cd45fd5554 (patch)
tree71b54656848f41d9639a7ae793d9eb40a6a0bd93 /commit-graph.c
parentMerge branch 'ps/ref-peeled-tags' into kn/refs-optim-cleanup (diff)
downloadgit-0f8251296e34c063d95f5806a07235cd45fd5554.tar.gz
git-0f8251296e34c063d95f5806a07235cd45fd5554.zip
refs: move to using the '.optimize' functions
The `struct ref_store` variable exposes two ways to optimize a reftable backend: 1. pack_refs 2. optimize The former was specific to the 'files' + 'packed' refs backend. The latter is more generic and covers all backends. While the naming is different, both of these functions perform the same functionality. Consolidate this code to only maintain the 'optimize' functions. Do this by modifying the backends so that they exclusively implement the `optimize` callback, only. All users of the refs subsystem already use the 'optimize' function so there is no changes needed on the callee side. Finally, cleanup all references to the 'pack_refs' field of the structure and code around it. Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions