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>
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* and Carlos Rica <jasampler@gmail.com> that was itself based on
|
||||
* git-tag.sh and mktag.c by Linus Torvalds.
|
||||
*/
|
||||
|
||||
#define USE_THE_REPOSITORY_VARIABLE
|
||||
#include "builtin.h"
|
||||
#include "config.h"
|
||||
#include "editor.h"
|
||||
@ -22,7 +22,6 @@
|
||||
#include "object-name.h"
|
||||
#include "object-store-ll.h"
|
||||
#include "replace-object.h"
|
||||
#include "repository.h"
|
||||
#include "tag.h"
|
||||
#include "wildmatch.h"
|
||||
|
||||
|
Reference in New Issue
Block a user