builtin: remove USE_THE_REPOSITORY for those without the_repository

For builtins that do not operate on a repository, remove the #define USE_THE_REPOSITORY. Signed-off-by: John Cai <johncai86@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

John Cai committed Sep 13, 2024 at 21:16 UTC 49d2434664b5b4cb44460d16578039fcd198c40a
9 files changed -9
builtin/check-ref-format.c
-1
@@ -1,7 +1,6 @@
1 /*
2 * GIT - The information manager from hell
3 */
4 -#define USE_THE_REPOSITORY_VARIABLE
4 #include "builtin.h"
5 #include "refs.h"
6 #include "setup.h"
builtin/credential-cache.c
-1
@@ -1,4 +1,3 @@
1 -#define USE_THE_REPOSITORY_VARIABLE
1 #include "builtin.h"
2 #include "credential.h"
3 #include "gettext.h"
builtin/diagnose.c
-1
@@ -1,4 +1,3 @@
1 -#define USE_THE_REPOSITORY_VARIABLE
1 #include "builtin.h"
2 #include "abspath.h"
3 #include "gettext.h"
builtin/get-tar-commit-id.c
-1
@@ -1,7 +1,6 @@
1 /*
2 * Copyright (c) 2005, 2006 Rene Scharfe
3 */
4 -#define USE_THE_REPOSITORY_VARIABLE
4 #include "builtin.h"
5 #include "commit.h"
6 #include "tar.h"
builtin/mailsplit.c
-1
@@ -4,7 +4,6 @@
4 * It just splits a mbox into a list of files: "0001" "0002" ..
5 * so you can process them further from there.
6 */
7 -#define USE_THE_REPOSITORY_VARIABLE
7 #include "builtin.h"
8 #include "gettext.h"
9 #include "string-list.h"
builtin/prune-packed.c
-1
@@ -1,4 +1,3 @@
1 -#define USE_THE_REPOSITORY_VARIABLE
1 #include "builtin.h"
2 #include "gettext.h"
3 #include "parse-options.h"
builtin/remote-ext.c
-1
@@ -1,4 +1,3 @@
1 -#define USE_THE_REPOSITORY_VARIABLE
1 #include "builtin.h"
2 #include "transport.h"
3 #include "run-command.h"
builtin/remote-fd.c
-1
@@ -1,4 +1,3 @@
1 -#define USE_THE_REPOSITORY_VARIABLE
1 #include "builtin.h"
2 #include "transport.h"
3
builtin/upload-pack.c
-1
@@ -1,4 +1,3 @@
1 -#define USE_THE_REPOSITORY_VARIABLE
1 #include "builtin.h"
2 #include "exec-cmd.h"
3 #include "gettext.h"