]> git.ipfire.org Git - thirdparty/git.git/commit
object-file: get rid of `the_repository` in index-related functions
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Jul 2025 04:56:42 +0000 (06:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2025 05:16:18 +0000 (22:16 -0700)
commit5f2e994e34ab83c90c1c5f3b31c1573b37cb137b
treeaf7d24bdc0f6bc99aed5ab4159633d58f33aaa16
parentc2b5d1490a4b6b8b1a50b9ef82ec204811d7ccf1
object-file: get rid of `the_repository` in index-related functions

Both `index_fd()` and `index_path()` still use `the_repository` even
though they have a repository available via `struct index_state`. Adapt
them so that they use the index' repository instead to get rid of this
global dependency.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c