On Sun, Jun 8, 2025 at 6:37 AM Ayush Chandekar <ayu.chandekar@xxxxxxxxx> wrote: > > The aim of this patch series is to remove the definition '#define USE_THE_REPOSITORY_VARIABLE' > from "builtin/prune.c" by removing global variables and the global 'the_repository'. > > This patch series contains two patches: > > 1 - Move the global variable 'repository_format_precious_objects' into 'struct repository' > and update all affected code paths accordingly. > > 2 - Remove the dependency of 'the_repository' in "builtin/prunce.c", allowing the removal of > the definition. > > Ayush Chandekar (2): > repository: move 'repository_format_precious_objects' to repo scope > builtin/prune: stop depending on 'the_repository' > > builtin/gc.c | 2 +- > builtin/prune.c | 25 ++++++++++++------------- > builtin/repack.c | 2 +- > environment.c | 1 - > environment.h | 2 -- > repository.c | 1 + > repository.h | 1 + > setup.c | 5 ++++- > 8 files changed, 20 insertions(+), 19 deletions(-) > > -- > 2.49.0 > This patch appears to have gone unnoticed as it hasn't seen any reviews yet. Resurfacing it in case it got overlooked.