]> Kevux Git Server - rit/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 6594517..e86d8ef 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 1918c47..5de8b91 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "credential.h"
 #include "gettext.h"
index 5ac7872..66a22d9 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "abspath.h"
 #include "gettext.h"
index 272384a..6bec0d1 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 2425422..b8f7150 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 0720d82..4d63f26 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "gettext.h"
 #include "parse-options.h"
index 119f338..33c8ae0 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "transport.h"
 #include "run-command.h"
index b27ea81..ae896ed 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "transport.h"
 
index 363091c..3b6c83f 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
 #include "builtin.h"
 #include "exec-cmd.h"
 #include "gettext.h"