summaryrefslogtreecommitdiff
path: root/builtin/range-diff.c
diff options
context:
space:
mode:
authorJohn Cai <johncai86@gmail.com>2024-09-13 21:16:15 +0000
committerJunio C Hamano <gitster@pobox.com>2024-09-13 14:32:24 -0700
commit03eae9afb447ad4add2f18a1adb3589f050d596f (patch)
treeebabe6ee0ab1b62f7839adf730c6f2a783809d93 /builtin/range-diff.c
parent9b1cb5070ffb581798763eaee85cec10da969e90 (diff)
builtin: remove USE_THE_REPOSITORY_VARIABLE from builtin.h
Instead of including USE_THE_REPOSITORY_VARIABLE by default on every builtin, remove it from builtin.h and add it to all the builtins that include builtin.h (by definition, that means all builtins/*.c). Also, remove the include statement for repository.h since it gets brought in through builtin.h. The next step will be to migrate each builtin from having to use the_repository. Signed-off-by: John Cai <johncai86@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/range-diff.c')
-rw-r--r--builtin/range-diff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/range-diff.c b/builtin/range-diff.c
index 3e67259aec..1b33ab66a7 100644
--- a/builtin/range-diff.c
+++ b/builtin/range-diff.c
@@ -1,10 +1,11 @@
+#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "gettext.h"
#include "object-name.h"
#include "parse-options.h"
#include "range-diff.h"
#include "config.h"
-#include "repository.h"
+
static const char * const builtin_range_diff_usage[] = {
N_("git range-diff [<options>] <old-base>..<old-tip> <new-base>..<new-tip>"),