]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: pass down repository to `has_object[_kept]_pack`
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 3 Dec 2024 14:43:59 +0000 (15:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Dec 2024 23:21:54 +0000 (08:21 +0900)
commitcc656f4eb2b7b10bc530c96844909c869bdd1fdf
tree24a6ddb8fa0fde090ead24c5b7961faa453b3803
parent873b00597bbf20c1bcda089a687641167b148fa2
packfile: pass down repository to `has_object[_kept]_pack`

The functions `has_object[_kept]_pack` currently rely on the global
variable `the_repository`. To eliminate global variable usage in
`packfile.c`, we should progressively shift the dependency on
the_repository to higher layers. Let's remove its usage from these
functions and any related ones.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/count-objects.c
builtin/fsck.c
builtin/pack-objects.c
diff.c
list-objects.c
pack-bitmap.c
packfile.c
packfile.h
prune-packed.c
reachable.c
revision.c