diff options
author | John Cai <johncai86@gmail.com> | 2024-09-13 23:16:15 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-13 23:32:24 +0200 |
commit | 03eae9afb447ad4add2f18a1adb3589f050d596f (patch) | |
tree | ebabe6ee0ab1b62f7839adf730c6f2a783809d93 /builtin.h | |
parent | builtin: add a repository parameter for builtin functions (diff) | |
download | git-03eae9afb447ad4add2f18a1adb3589f050d596f.tar.xz git-03eae9afb447ad4add2f18a1adb3589f050d596f.zip |
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.h')
-rw-r--r-- | builtin.h | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -1,14 +1,6 @@ #ifndef BUILTIN_H #define BUILTIN_H -/* - * TODO: Almost all of our builtins access `the_repository` by necessity - * because they do not get passed a pointer to it. We should adapt the function - * signature of those main functions to accept a `struct repository *` and then - * remove the macro here. - */ -#define USE_THE_REPOSITORY_VARIABLE - #include "git-compat-util.h" #include "repository.h" |