]> git.99rst.org Git - git.git/commit
refs/files: drop `USE_THE_REPOSITORY_VARIABLE`
authorPatrick Steinhardt <redacted>
Thu, 16 Jul 2026 05:33:03 +0000 (07:33 +0200)
committerJunio C Hamano <redacted>
Thu, 16 Jul 2026 14:40:21 +0000 (07:40 -0700)
commitaf57f7361d51ad76bead03829c6b1618a0c8adbb
tree602e264c6895484a31d2c8db66987884a11884fa
parent5abbd7c3a2e0b484e23377ae405af2b282286274
refs/files: drop `USE_THE_REPOSITORY_VARIABLE`

We have a bunch of users of `the_repository` in the "files" backend, all
of which are trivial to convert to instead use the backend's own repo.
Do so.

There is one more dependency on global state though via `ignore_case`,
and thus we can't trivially remove `USE_THE_REPOSITORY_VARIABLE`. But
this is the only use of global state, and we want to ensure that we
don't unwittingly reintroduce a dependency on `the_repository` going
forward.

Add an extern declaration for `ignore_case` so that it becomes
accessible even without `USE_THE_REPOSITORY_VARIABLE` and drop the
define itself.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
refs/files-backend.c
git clone https://git.99rst.org/PROJECT