Git fork

global: prepare for hiding away repo-less config functions

We're about to hide config functions that implicitly depend on
`the_repository` behind the `USE_THE_REPOSITORY_VARIABLE` macro. This
will uncover a bunch of dependents that transitively relied on the
global variable, but didn't define the macro yet.

Adapt them such that we define the macro to prepare for this change.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Patrick Steinhardt and committed by
Junio C Hamano
219de841 f7d61c41

+45
+2
compat/fsmonitor/fsm-ipc-darwin.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "config.h" 3 5 #include "gettext.h"
+1
compat/precompose_utf8.c
··· 4 4 */ 5 5 6 6 #define PRECOMPOSE_UNICODE_C 7 + #define USE_THE_REPOSITORY_VARIABLE 7 8 8 9 #include "git-compat-util.h" 9 10 #include "config.h"
+2
connect.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "config.h" 3 5 #include "environment.h"
+2
credential.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "abspath.h" 3 5 #include "config.h"
+2
daemon.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "abspath.h" 3 5 #include "config.h"
+2
editor.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "abspath.h" 3 5 #include "advice.h"
+2
fsmonitor.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "config.h" 3 5 #include "dir.h"
+2
gpg-interface.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "commit.h" 3 5 #include "config.h"
+2
graph.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "gettext.h" 3 5 #include "config.h"
+2
imap-send.c
··· 21 21 * along with this program; if not, see <https://www.gnu.org/licenses/>. 22 22 */ 23 23 24 + #define USE_THE_REPOSITORY_VARIABLE 25 + 24 26 #include "git-compat-util.h" 25 27 #include "config.h" 26 28 #include "credential.h"
+2
mailinfo.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "config.h" 3 5 #include "gettext.h"
+2
merge-ll.c
··· 4 4 * Copyright (c) 2007 Junio C Hamano 5 5 */ 6 6 7 + #define USE_THE_REPOSITORY_VARIABLE 8 + 7 9 #include "git-compat-util.h" 8 10 #include "config.h" 9 11 #include "convert.h"
+2
parallel-checkout.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "config.h" 3 5 #include "entry.h"
+2
protocol.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "config.h" 3 5 #include "environment.h"
+2
refs.c
··· 2 2 * The backend-independent part of the reference module. 3 3 */ 4 4 5 + #define USE_THE_REPOSITORY_VARIABLE 6 + 5 7 #include "git-compat-util.h" 6 8 #include "advice.h" 7 9 #include "config.h"
+2
refs/packed-backend.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "../git-compat-util.h" 2 4 #include "../config.h" 3 5 #include "../dir.h"
+2
refs/reftable-backend.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "../git-compat-util.h" 2 4 #include "../abspath.h" 3 5 #include "../chdir-notify.h"
+2
sideband.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "color.h" 3 5 #include "config.h"
+2
t/helper/test-advise.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "test-tool.h" 2 4 #include "advice.h" 3 5 #include "config.h"
+2
t/helper/test-config.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "test-tool.h" 2 4 #include "config.h" 3 5 #include "setup.h"
+2
t/helper/test-userdiff.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "test-tool.h" 2 4 #include "setup.h" 3 5 #include "userdiff.h"
+2
trailer.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "config.h" 3 5 #include "environment.h"
+2
versioncmp.c
··· 1 + #define USE_THE_REPOSITORY_VARIABLE 2 + 1 3 #include "git-compat-util.h" 2 4 #include "config.h" 3 5 #include "strbuf.h"