]> git.99rst.org Git - git.git/commit
copy: drop dependency on `the_repository`
authorPatrick Steinhardt <redacted>
Thu, 16 Jul 2026 15:28:23 +0000 (17:28 +0200)
committerJunio C Hamano <redacted>
Thu, 16 Jul 2026 21:10:08 +0000 (14:10 -0700)
commit0717b3595d4ebfca396134e4356e473c794aa1c9
treefd65335b1c6427887adaa6ef87d609c3b22efbe4
parentd35c5399e3e54ac277bb391fc2f6be3e816d312b
copy: drop dependency on `the_repository`

When copying a file we need to potentially adapt permissions of the new
file based on whether or not "core.shared" is enabled. Parsing this
configuration makes us implicitly depend on `the_repository`.

Refactor the code to instead require the caller to pass in a repository
so that we can remove `USE_THE_REPOSITORY_VARIABLE`.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/clone.c
builtin/difftool.c
builtin/worktree.c
bundle-uri.c
copy.c
copy.h
refs/files-backend.c
rerere.c
sequencer.c
setup.c
git clone https://git.99rst.org/PROJECT