summaryrefslogtreecommitdiffstats
path: root/setup.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-12 13:29:51 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-12 19:15:41 +0200
commitc22d183b01417f996307de0c3923811b66a44ae7 (patch)
treecad79c4762a5e0e28d1e96e0938136f65976da58 /setup.h
parentenvironment: move object database functions into object layer (diff)
downloadgit-c22d183b01417f996307de0c3923811b66a44ae7.tar.xz
git-c22d183b01417f996307de0c3923811b66a44ae7.zip
environment: make `get_git_namespace()` self-contained
The logic to set up and retrieve `git_namespace` is distributed across different functions which communicate with each other via a global environment variable. This is rather pointless though, as the value is always derived from an environment variable, and this environment variable does not change after we have parsed global options. Convert the function to be fully self-contained such that it lazily populates once called. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions