Skip to content

Commit 88e4e18

Browse files
newrengitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7681229 commit 88e4e18

File tree

8 files changed

+7
-2
lines changed

8 files changed

+7
-2
lines changed

builtin.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#define BUILTIN_H
33

44
#include "git-compat-util.h"
5-
#include "strbuf.h"
6-
#include "commit.h"
75

86
/*
97
* builtin API

builtin/check-mailmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "ident.h"
55
#include "mailmap.h"
66
#include "parse-options.h"
7+
#include "strbuf.h"
78
#include "string-list.h"
89
#include "write-or-die.h"
910

builtin/commit-graph.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "builtin.h"
2+
#include "commit.h"
23
#include "config.h"
34
#include "dir.h"
45
#include "environment.h"

builtin/config.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "path.h"
1414
#include "quote.h"
1515
#include "setup.h"
16+
#include "strbuf.h"
1617
#include "worktree.h"
1718
#include "wrapper.h"
1819

builtin/credential-cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "gettext.h"
33
#include "parse-options.h"
44
#include "path.h"
5+
#include "strbuf.h"
56
#include "wrapper.h"
67
#include "write-or-die.h"
78

builtin/for-each-ref.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "object.h"
66
#include "parse-options.h"
77
#include "ref-filter.h"
8+
#include "strbuf.h"
89
#include "strvec.h"
910
#include "commit-reach.h"
1011

builtin/init-db.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "parse-options.h"
1313
#include "path.h"
1414
#include "setup.h"
15+
#include "strbuf.h"
1516
#include "wrapper.h"
1617

1718
static int guess_repository_type(const char *git_dir)

builtin/verify-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "gettext.h"
44
#include "run-command.h"
55
#include "parse-options.h"
6+
#include "strbuf.h"
67

78
#define VERIFY_PACK_VERBOSE 01
89
#define VERIFY_PACK_STAT_ONLY 02

0 commit comments

Comments
 (0)