aboutsummaryrefslogtreecommitdiff
path: root/environment.h
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 /environment.h
parent11dbb4ace3ac428574fadf6f7895f56aba9dca81 (diff)
downloadgit-1e7e4a111f986088abc9194d55349419e5c110c3.tar.xz
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 'environment.h')
-rw-r--r--environment.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/environment.h b/environment.h
index aa38133da9..923e12661e 100644
--- a/environment.h
+++ b/environment.h
@@ -203,8 +203,6 @@ enum object_creation_mode {
};
extern enum object_creation_mode object_creation_mode;
-extern char *notes_ref_name;
-
extern int grafts_keep_true_parents;
extern int repository_format_precious_objects;