aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-12 13:30:26 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-12 10:15:44 -0700
commit1e7e4a111f986088abc9194d55349419e5c110c3 (patch)
tree997f95b3783707241bf2a11ee4f9b72f1c6cb261 /config.c
parentenvironment: stop storing "core.warnAmbiguousRefs" globally (diff)
downloadgit-1e7e4a111f986088abc9194d55349419e5c110c3.tar.gz
git-1e7e4a111f986088abc9194d55349419e5c110c3.zip
environment: stop storing "core.notesRef" globally
Stop storing the "core.notesRef" config value globally. Instead, retrieve the value in `default_notes_ref()`. The code is never called in a hot loop anyway, so doing this on every invocation should be perfectly fine. 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.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/config.c b/config.c
index 53c68f3da6..1266eab086 100644
--- a/config.c
+++ b/config.c
@@ -1555,14 +1555,6 @@ static int git_default_core_config(const char *var, const char *value,
return git_config_string(&check_roundtrip_encoding, var, value);
}
- if (!strcmp(var, "core.notesref")) {
- if (!value)
- return config_error_nonbool(var);
- free(notes_ref_name);
- notes_ref_name = xstrdup(value);
- return 0;
- }
-
if (!strcmp(var, "core.editor")) {
FREE_AND_NULL(editor_program);
return git_config_string(&editor_program, var, value);