]> git.ipfire.org Git - thirdparty/git.git/commit
midx-write: pass down repository to `write_midx_file[_only]`
authorKarthik Nayak <karthik.188@gmail.com>
Wed, 27 Nov 2024 16:28:29 +0000 (17:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Dec 2024 01:32:20 +0000 (10:32 +0900)
commit2fed09aa9b82e4710fb4049e18280df8270eb0b2
tree85bb8175dc09c3bd8fb4b3213ed03c9378fe2793
parentdfa7c68245bc01e7678d85520cbfbac042cb7c5c
midx-write: pass down repository to `write_midx_file[_only]`

In a previous commit, we passed the repository field to all
subcommands in the `builtin/` directory. Utilize this to pass the
repository field down to the `write_midx_file[_only]` functions to
remove the usage of `the_repository` global variables.

With this, all usage of global variables in `midx-write.c` is removed,
hence, remove the `USE_THE_REPOSITORY_VARIABLE` guard from the file.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/multi-pack-index.c
builtin/repack.c
midx-write.c
midx.h