]> git.ipfire.org Git - thirdparty/git.git/commit
config: make `packed_git_(limit|window_size)` non-global variables
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 3 Dec 2024 14:44:02 +0000 (15:44 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Dec 2024 23:21:55 +0000 (08:21 +0900)
commitd284713bae71877577cf1a07501c8528f8c44bb2
treed933aa2b54f2d8d92d56b8e9aeaa055404fc9df4
parentd6b2d21fbf269db7a6be56d28a62cb65a7d7a660
config: make `packed_git_(limit|window_size)` non-global variables

The variables `packed_git_window_size` and `packed_git_limit` are global
config variables used in the `packfile.c` file. Since it is only used in
this file, let's change it from being a global config variable to a
local variable for the subsystem.

With this, we rid `packfile.c` from all global variable usage and this
means we can also remove the `USE_THE_REPOSITORY_VARIABLE` guard from
the file.

Helped-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-import.c
config.c
environment.c
packfile.c
packfile.h
repo-settings.c
repo-settings.h