diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-12 13:30:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-12 19:15:43 +0200 |
commit | 8e2e8a33f3558524adeceeb1e2e7b64a367b0d08 (patch) | |
tree | ac073e084b58e7fb5a33ca95e3478e0fb1cf82b8 /config.c | |
parent | environment: stop storing "core.logAllRefUpdates" globally (diff) | |
download | git-8e2e8a33f3558524adeceeb1e2e7b64a367b0d08.tar.xz git-8e2e8a33f3558524adeceeb1e2e7b64a367b0d08.zip |
environment: stop storing "core.preferSymlinkRefs" globally
Same as the preceding commit, storing the "core.preferSymlinkRefs" value
globally is misdesigned as this setting may be set per repository.
There is only a single user of this value anyway, namely the "files"
backend. So let's just remove the global variable and read the value of
this setting when initializing the backend.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1447,11 +1447,6 @@ static int git_default_core_config(const char *var, const char *value, return 0; } - if (!strcmp(var, "core.prefersymlinkrefs")) { - prefer_symlink_refs = git_config_bool(var, value); - return 0; - } - if (!strcmp(var, "core.warnambiguousrefs")) { warn_ambiguous_refs = git_config_bool(var, value); return 0; |