]> git.ipfire.org Git - thirdparty/git.git/commitdiff
builtin: remove USE_THE_REPOSITORY for those without the_repository
authorJohn Cai <johncai86@gmail.com>
Fri, 13 Sep 2024 21:16:16 +0000 (21:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Sep 2024 21:33:30 +0000 (14:33 -0700)
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>
builtin/check-ref-format.c
builtin/credential-cache.c
builtin/diagnose.c
builtin/get-tar-commit-id.c
builtin/mailsplit.c
builtin/prune-packed.c
builtin/remote-ext.c
builtin/remote-fd.c
builtin/upload-pack.c

index 65945171b3fc5fb19e5853d8750a1e9f1f342084..e86d8ef980bd3bcaf6c2115e0423d2f9b2131fd5 100644 (file)
@@ -1,7 +1,6 @@
 /*
  * GIT - The information manager from hell
  */
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "refs.h"
 #include "setup.h"
index 1918c474f025f1a7f7479d51a38c55dc5d1384a0..5de8b9123bf07c848077838b68e24f4ba4541eff 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "credential.h"
 #include "gettext.h"
index 5ac7872b998328eb843255acc3bd341416d1242b..66a22d918e68a48a7c31ef3b75335f9a2bad7ab1 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "abspath.h"
 #include "gettext.h"
index 272384a6b15d03d0f88de75e972d04acafd49043..6bec0d1854c03ecbda0c364a7ff8313b10ca3069 100644 (file)
@@ -1,7 +1,6 @@
 /*
  * Copyright (c) 2005, 2006 Rene Scharfe
  */
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "commit.h"
 #include "tar.h"
index 24254221417327c95a9c6ab1f9027d0bced70a7e..b8f7150ce9a5b47bbb15a13f392bdd8698efe2a9 100644 (file)
@@ -4,7 +4,6 @@
  * It just splits a mbox into a list of files: "0001" "0002" ..
  * so you can process them further from there.
  */
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "gettext.h"
 #include "string-list.h"
index 0720d825c83da923a9b75a8c3b284ed7752505f6..4d63f26b0a120caf54ec8ca404be7c0d3d877a8d 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "gettext.h"
 #include "parse-options.h"
index 119f33895e776e3f012af4dd116d1069bc3b7b4c..33c8ae0fc7d638461e11b01b1c31d291efdacba9 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "transport.h"
 #include "run-command.h"
index b27ea81e4fb30e8424c67681c49ae44e799b0cb8..ae896eda57b86d110d6cb2f3aec1cc8e69ddb508 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "transport.h"
 
index 363091c31e8f31f49fd250f2b1c56cdfede824ab..3b6c83fbce3684f627e2e86818671e9c0dab30e1 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "exec-cmd.h"
 #include "gettext.h"