]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: pass `repository` to static function in the file
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 3 Dec 2024 14:43:57 +0000 (15:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Dec 2024 23:21:54 +0000 (08:21 +0900)
commit4f9e6bd4923728053669c300d3ee8483d95f599b
tree36727611a9dd0215c72c25deffe9cf94ef5a8866
parent9c5ce06d74251601ca0dcb3ebe2284639f96f9a2
packfile: pass `repository` to static function in the file

Some of the static functions in the `packfile.c` access global
variables, which can simply be avoided by passing the `repository`
struct down to them. Let's do that.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
packfile.c