summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-12 13:30:21 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-12 19:15:43 +0200
commit8e2e8a33f3558524adeceeb1e2e7b64a367b0d08 (patch)
treeac073e084b58e7fb5a33ca95e3478e0fb1cf82b8 /config.c
parentenvironment: stop storing "core.logAllRefUpdates" globally (diff)
downloadgit-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.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/config.c b/config.c
index 47101c3e97..a59890180a 100644
--- a/config.c
+++ b/config.c
@@ -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;