builtin.h: remove unneccessary includes

This also made it clear that a few .c files under builtin/ were
depending upon some headers but had forgotten to #include them.  Add the
missing direct includes while at it.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Elijah Newren 2023-05-16 06:34:02 +00:00 committed by Junio C Hamano
parent 768122900f
commit 88e4e18325
8 changed files with 7 additions and 2 deletions

View File

@ -2,8 +2,6 @@
#define BUILTIN_H
#include "git-compat-util.h"
#include "strbuf.h"
#include "commit.h"
/*
* builtin API

View File

@ -4,6 +4,7 @@
#include "ident.h"
#include "mailmap.h"
#include "parse-options.h"
#include "strbuf.h"
#include "string-list.h"
#include "write-or-die.h"

View File

@ -1,4 +1,5 @@
#include "builtin.h"
#include "commit.h"
#include "config.h"
#include "dir.h"
#include "environment.h"

View File

@ -13,6 +13,7 @@
#include "path.h"
#include "quote.h"
#include "setup.h"
#include "strbuf.h"
#include "worktree.h"
#include "wrapper.h"

View File

@ -2,6 +2,7 @@
#include "gettext.h"
#include "parse-options.h"
#include "path.h"
#include "strbuf.h"
#include "wrapper.h"
#include "write-or-die.h"

View File

@ -5,6 +5,7 @@
#include "object.h"
#include "parse-options.h"
#include "ref-filter.h"
#include "strbuf.h"
#include "strvec.h"
#include "commit-reach.h"

View File

@ -12,6 +12,7 @@
#include "parse-options.h"
#include "path.h"
#include "setup.h"
#include "strbuf.h"
#include "wrapper.h"
static int guess_repository_type(const char *git_dir)

View File

@ -3,6 +3,7 @@
#include "gettext.h"
#include "run-command.h"
#include "parse-options.h"
#include "strbuf.h"
#define VERIFY_PACK_VERBOSE 01
#define VERIFY_PACK_STAT_ONLY 02