]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: use `repository` from `packed_git` directly
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 3 Dec 2024 14:43:56 +0000 (15:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Dec 2024 23:21:53 +0000 (08:21 +0900)
commit9c5ce06d74251601ca0dcb3ebe2284639f96f9a2
treee084efee8457e371c74a30de6773aac10b183107
parent2cf3fe63f6eedd6d132c530b897595345a05088b
packfile: use `repository` from `packed_git` directly

In the previous commit, we introduced the `repository` structure inside
`packed_git`. This provides an alternative route instead of using the
global `the_repository` variable. Let's modify `packfile.c` now to use
this field wherever possible instead of relying on the global state.
There are still a few instances of `the_repository` usage in the file,
where there is no struct `packed_git` locally available, which will be
fixed in the following commits.

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>
packfile.c