Skip to content

Commit 49d2434

Browse files
john-caigitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 03eae9a commit 49d2434

File tree

9 files changed

+0
-9
lines changed

9 files changed

+0
-9
lines changed

builtin/check-ref-format.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
22
* GIT - The information manager from hell
33
*/
4-
#define USE_THE_REPOSITORY_VARIABLE
54
#include "builtin.h"
65
#include "refs.h"
76
#include "setup.h"

builtin/credential-cache.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#define USE_THE_REPOSITORY_VARIABLE
21
#include "builtin.h"
32
#include "credential.h"
43
#include "gettext.h"

builtin/diagnose.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#define USE_THE_REPOSITORY_VARIABLE
21
#include "builtin.h"
32
#include "abspath.h"
43
#include "gettext.h"

builtin/get-tar-commit-id.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
22
* Copyright (c) 2005, 2006 Rene Scharfe
33
*/
4-
#define USE_THE_REPOSITORY_VARIABLE
54
#include "builtin.h"
65
#include "commit.h"
76
#include "tar.h"

builtin/mailsplit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* It just splits a mbox into a list of files: "0001" "0002" ..
55
* so you can process them further from there.
66
*/
7-
#define USE_THE_REPOSITORY_VARIABLE
87
#include "builtin.h"
98
#include "gettext.h"
109
#include "string-list.h"

builtin/prune-packed.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#define USE_THE_REPOSITORY_VARIABLE
21
#include "builtin.h"
32
#include "gettext.h"
43
#include "parse-options.h"

builtin/remote-ext.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#define USE_THE_REPOSITORY_VARIABLE
21
#include "builtin.h"
32
#include "transport.h"
43
#include "run-command.h"

builtin/remote-fd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#define USE_THE_REPOSITORY_VARIABLE
21
#include "builtin.h"
32
#include "transport.h"
43

builtin/upload-pack.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#define USE_THE_REPOSITORY_VARIABLE
21
#include "builtin.h"
32
#include "exec-cmd.h"
43
#include "gettext.h"

0 commit comments

Comments
 (0)