]> git.ipfire.org Git - thirdparty/git.git/commit
config: pass repo to functions that rename or copy sections
authorPatrick Steinhardt <ps@pks.im>
Tue, 13 Aug 2024 09:14:12 +0000 (11:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Aug 2024 17:01:04 +0000 (10:01 -0700)
commit76fc9906f2121dd4abd42a4c6c2d864c40736b3a
tree7b7d99a0887289cf54e0de9bd31a32bd7b74e558
parent0c2c37d16b170697e7c97be5db7dca58b877c4e5
config: pass repo to functions that rename or copy sections

Refactor functions that rename or copy config sections to accept a
`struct repository` such that we can get rid of the implicit dependency
on `the_repository`. Rename the functions accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
builtin/config.c
builtin/remote.c
builtin/submodule--helper.c
config.c
config.h
submodule.c