Skip to content

Commit 6b0eec0

Browse files
newrengitster
authored andcommitted
treewide: remove unnecessary includes in source files
Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d4d23f6 commit 6b0eec0

22 files changed

+0
-25
lines changed

builtin/archive.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "parse-options.h"
1010
#include "pkt-line.h"
1111
#include "repository.h"
12-
#include "sideband.h"
1312

1413
static void create_output_file(const char *output_file)
1514
{

builtin/commit-graph.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "environment.h"
55
#include "gettext.h"
66
#include "hex.h"
7-
#include "lockfile.h"
87
#include "parse-options.h"
98
#include "repository.h"
109
#include "commit-graph.h"

builtin/fsck.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "refs.h"
1111
#include "pack.h"
1212
#include "cache-tree.h"
13-
#include "tree-walk.h"
1413
#include "fsck.h"
1514
#include "parse-options.h"
1615
#include "progress.h"

builtin/fsmonitor--daemon.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77
#include "parse-options.h"
88
#include "fsmonitor-ll.h"
99
#include "fsmonitor-ipc.h"
10-
#include "fsmonitor-path-utils.h"
1110
#include "fsmonitor-settings.h"
1211
#include "compat/fsmonitor/fsm-health.h"
1312
#include "compat/fsmonitor/fsm-listen.h"
1413
#include "fsmonitor--daemon.h"
1514
#include "repository.h"
1615
#include "simple-ipc.h"
1716
#include "khash.h"
18-
#include "pkt-line.h"
1917
#include "run-command.h"
2018
#include "trace.h"
2119
#include "trace2.h"

builtin/grep.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "parse-options.h"
1515
#include "string-list.h"
1616
#include "run-command.h"
17-
#include "userdiff.h"
1817
#include "grep.h"
1918
#include "quote.h"
2019
#include "dir.h"

builtin/mktag.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "hex.h"
44
#include "parse-options.h"
55
#include "strbuf.h"
6-
#include "tag.h"
76
#include "replace-object.h"
87
#include "object-file.h"
98
#include "object-store-ll.h"

builtin/rev-list.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "object-name.h"
1313
#include "object-file.h"
1414
#include "object-store-ll.h"
15-
#include "pack.h"
1615
#include "pack-bitmap.h"
1716
#include "log-tree.h"
1817
#include "graph.h"

builtin/send-pack.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include "config.h"
33
#include "hex.h"
44
#include "pkt-line.h"
5-
#include "sideband.h"
65
#include "run-command.h"
76
#include "remote.h"
87
#include "connect.h"

commit-graph.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "gettext.h"
55
#include "hex.h"
66
#include "lockfile.h"
7-
#include "pack.h"
87
#include "packfile.h"
98
#include "commit.h"
109
#include "object.h"

compat/simple-ipc/ipc-shared.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#include "git-compat-util.h"
22
#include "simple-ipc.h"
3-
#include "strbuf.h"
4-
#include "pkt-line.h"
5-
#include "thread-utils.h"
63

74
#ifndef SUPPORTS_SIMPLE_IPC
85
/*

compat/simple-ipc/ipc-unix-socket.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include "gettext.h"
33
#include "simple-ipc.h"
44
#include "strbuf.h"
5-
#include "pkt-line.h"
65
#include "thread-utils.h"
76
#include "trace2.h"
87
#include "unix-socket.h"

fsmonitor-ipc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "git-compat-util.h"
2-
#include "fsmonitor-ll.h"
32
#include "gettext.h"
43
#include "simple-ipc.h"
54
#include "fsmonitor-ipc.h"

http.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "http.h"
55
#include "config.h"
66
#include "pack.h"
7-
#include "sideband.h"
87
#include "run-command.h"
98
#include "url.h"
109
#include "urlmatch.h"

line-log.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "xdiff-interface.h"
1313
#include "strbuf.h"
1414
#include "log-tree.h"
15-
#include "userdiff.h"
1615
#include "line-log.h"
1716
#include "setup.h"
1817
#include "strvec.h"

merge-ort.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
#include "revision.h"
4242
#include "sparse-index.h"
4343
#include "strmap.h"
44-
#include "submodule.h"
4544
#include "trace2.h"
4645
#include "tree.h"
4746
#include "unpack-trees.h"

notes-utils.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "gettext.h"
66
#include "refs.h"
77
#include "notes-utils.h"
8-
#include "repository.h"
98
#include "strbuf.h"
109

1110
void create_notes_commit(struct repository *r,

ref-filter.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include "commit-reach.h"
3030
#include "worktree.h"
3131
#include "hashmap.h"
32-
#include "strvec.h"
3332

3433
static struct ref_msg {
3534
const char *gone;

remote-curl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "run-command.h"
1212
#include "pkt-line.h"
1313
#include "string-list.h"
14-
#include "sideband.h"
1514
#include "strvec.h"
1615
#include "credential.h"
1716
#include "oid-array.h"

repo-settings.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include "config.h"
33
#include "repository.h"
44
#include "midx.h"
5-
#include "compat/fsmonitor/fsm-listen.h"
65

76
static void repo_cfg_bool(struct repository *r, const char *key, int *dest,
87
int def)

t/helper/test-repository.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "commit.h"
44
#include "environment.h"
55
#include "hex.h"
6-
#include "object-store-ll.h"
76
#include "object.h"
87
#include "repository.h"
98
#include "setup.h"

trace2/tr2_ctr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "git-compat-util.h"
2-
#include "thread-utils.h"
32
#include "trace2/tr2_tgt.h"
43
#include "trace2/tr2_tls.h"
54
#include "trace2/tr2_ctr.h"

trace2/tr2_tmr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "git-compat-util.h"
2-
#include "thread-utils.h"
32
#include "trace2/tr2_tgt.h"
43
#include "trace2/tr2_tls.h"
54
#include "trace2/tr2_tmr.h"

0 commit comments

Comments
 (0)