]> git.ipfire.org Git - thirdparty/git.git/commit
environment: stop storing "core.notesRef" globally
authorPatrick Steinhardt <ps@pks.im>
Thu, 12 Sep 2024 11:30:26 +0000 (13:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Sep 2024 17:15:44 +0000 (10:15 -0700)
commit1e7e4a111f986088abc9194d55349419e5c110c3
tree997f95b3783707241bf2a11ee4f9b72f1c6cb261
parent11dbb4ace3ac428574fadf6f7895f56aba9dca81
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>
builtin/notes.c
config.c
environment.c
environment.h
notes.c
notes.h