diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-12 13:29:51 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-12 19:15:41 +0200 |
commit | c22d183b01417f996307de0c3923811b66a44ae7 (patch) | |
tree | cad79c4762a5e0e28d1e96e0938136f65976da58 /setup.h | |
parent | environment: move object database functions into object layer (diff) | |
download | git-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