]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: pass down repository to `odb_pack_name`
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 3 Dec 2024 14:43:58 +0000 (15:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Dec 2024 23:21:54 +0000 (08:21 +0900)
commit873b00597bbf20c1bcda089a687641167b148fa2
tree24fa801860fbbc927e83474a37d2fae858da0f99
parent4f9e6bd4923728053669c300d3ee8483d95f599b
packfile: pass down repository to `odb_pack_name`

The function `odb_pack_name` currently relies 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.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-import.c
builtin/index-pack.c
builtin/pack-redundant.c
http.c
packfile.c
packfile.h