Skip to content

Commit d4a4f92

Browse files
newrengitster
authored andcommitted
commit.h: reduce unnecessary includes
Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e1c3821 commit d4a4f92

35 files changed

+39
-7
lines changed

add-interactive.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "dir.h"
1313
#include "run-command.h"
1414
#include "prompt.h"
15+
#include "tree.h"
1516

1617
static void init_color(struct repository *r, struct add_i_state *s,
1718
const char *section_and_slot, char *dst,

archive.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
#include "environment.h"
77
#include "gettext.h"
88
#include "hex.h"
9+
#include "pretty.h"
910
#include "setup.h"
1011
#include "refs.h"
1112
#include "object-store.h"
1213
#include "commit.h"
14+
#include "tree.h"
1315
#include "tree-walk.h"
1416
#include "attr.h"
1517
#include "archive.h"

bloom.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "hashmap.h"
77
#include "commit-graph.h"
88
#include "commit.h"
9+
#include "commit-slab.h"
910

1011
define_commit_slab(bloom_filter_slab, struct bloom_filter);
1112

builtin/diff-tree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "builtin.h"
1010
#include "submodule.h"
1111
#include "repository.h"
12+
#include "tree.h"
1213

1314
static struct rev_info log_tree_opt;
1415

builtin/diff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "setup.h"
2323
#include "submodule.h"
2424
#include "oid-array.h"
25+
#include "tree.h"
2526

2627
#define DIFF_NO_INDEX_EXPLICIT 1
2728
#define DIFF_NO_INDEX_IMPLICIT 2

builtin/gc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include "builtin.h"
1414
#include "abspath.h"
15+
#include "date.h"
1516
#include "environment.h"
1617
#include "hex.h"
1718
#include "repository.h"

builtin/log.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include "commit-reach.h"
4545
#include "range-diff.h"
4646
#include "tmp-objdir.h"
47+
#include "tree.h"
4748
#include "write-or-die.h"
4849

4950
#define MAIL_DEFAULT_WRAP 72

builtin/merge-tree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "exec-cmd.h"
1717
#include "merge-blobs.h"
1818
#include "quote.h"
19+
#include "tree.h"
1920

2021
static int line_termination = '\n';
2122

combine-diff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "xdiff/xmacros.h"
1414
#include "log-tree.h"
1515
#include "refs.h"
16+
#include "tree.h"
1617
#include "userdiff.h"
1718
#include "oid-array.h"
1819
#include "revision.h"

commit-graph.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "shallow.h"
2424
#include "json-writer.h"
2525
#include "trace2.h"
26+
#include "tree.h"
2627
#include "chunk-format.h"
2728
#include "wrapper.h"
2829

0 commit comments

Comments
 (0)