diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2024-12-03 15:43:56 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-12-04 08:21:53 +0900 |
commit | 9c5ce06d74251601ca0dcb3ebe2284639f96f9a2 (patch) | |
tree | e084efee8457e371c74a30de6773aac10b183107 /diff.c | |
parent | 2cf3fe63f6eedd6d132c530b897595345a05088b (diff) |
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>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions