]> git.ipfire.org Git - thirdparty/git.git/commit
midx: pass `repository` to `load_multi_pack_index`
authorKarthik Nayak <karthik.188@gmail.com>
Wed, 27 Nov 2024 16:28:31 +0000 (17:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Dec 2024 01:32:20 +0000 (10:32 +0900)
commitd5c2ca576a47480b03a83821041955a21a645d1a
treed8e709ce0b75c38af0ec27899b0c4ea0f1c3ea89
parentfae9bae7091958255fa7729f6cedb8cc4f9a3387
midx: pass `repository` to `load_multi_pack_index`

The `load_multi_pack_index` function in midx uses `the_repository`
variable to access the `repository` struct. Modify the function and its
callee's to send the `repository` field.

This moves usage of `the_repository` to the `test-read-midx.c` file.
While that is not optimal, it is okay, since the upcoming commits will
slowly move the usage of `the_repository` up the layers and remove it
eventually.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c
midx.h
t/helper/test-read-midx.c