summaryrefslogtreecommitdiffstats
path: root/environment.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 19:15:44 +0200
commit1e7e4a111f986088abc9194d55349419e5c110c3 (patch)
tree997f95b3783707241bf2a11ee4f9b72f1c6cb261 /environment.c
parentenvironment: stop storing "core.warnAmbiguousRefs" globally (diff)
downloadgit-1e7e4a111f986088abc9194d55349419e5c110c3.tar.xz
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 'environment.c')
-rw-r--r--environment.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/environment.c b/environment.c
index 9dd000cda3..a2ce998081 100644
--- a/environment.c
+++ b/environment.c
@@ -67,7 +67,6 @@ enum push_default_type push_default = PUSH_DEFAULT_UNSPECIFIED;
#define OBJECT_CREATION_MODE OBJECT_CREATION_USES_HARDLINKS
#endif
enum object_creation_mode object_creation_mode = OBJECT_CREATION_MODE;
-char *notes_ref_name;
int grafts_keep_true_parents;
int core_apply_sparse_checkout;
int core_sparse_checkout_cone;