treewide: remove unnecessary includes in source files
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Dec 23, 2023 at 17:15 UTC
d57c671a511d885a5cd390e3d6064c37af524a91
22 files changed
-25
builtin/archive.c
-1
@@ -9,7 +9,6 @@
9
#include "parse-options.h"
10
#include "pkt-line.h"
11
#include "repository.h"
12
-#include "sideband.h"
12
13
static void create_output_file(const char *output_file)
14
{
builtin/commit-graph.c
-1
@@ -4,7 +4,6 @@
4
#include "environment.h"
5
#include "gettext.h"
6
#include "hex.h"
7
-#include "lockfile.h"
7
#include "parse-options.h"
8
#include "repository.h"
9
#include "commit-graph.h"
builtin/fsck.c
-1
@@ -10,7 +10,6 @@
10
#include "refs.h"
11
#include "pack.h"
12
#include "cache-tree.h"
13
-#include "tree-walk.h"
13
#include "fsck.h"
14
#include "parse-options.h"
15
#include "progress.h"
builtin/fsmonitor--daemon.c
-2
@@ -7,7 +7,6 @@
7
#include "parse-options.h"
8
#include "fsmonitor-ll.h"
9
#include "fsmonitor-ipc.h"
10
-#include "fsmonitor-path-utils.h"
10
#include "fsmonitor-settings.h"
11
#include "compat/fsmonitor/fsm-health.h"
12
#include "compat/fsmonitor/fsm-listen.h"
@@ -15,7 +14,6 @@
14
#include "repository.h"
15
#include "simple-ipc.h"
16
#include "khash.h"
18
-#include "pkt-line.h"
17
#include "run-command.h"
18
#include "trace.h"
19
#include "trace2.h"
builtin/grep.c
-1
@@ -14,7 +14,6 @@
14
#include "parse-options.h"
15
#include "string-list.h"
16
#include "run-command.h"
17
-#include "userdiff.h"
17
#include "grep.h"
18
#include "quote.h"
19
#include "dir.h"
builtin/mktag.c
-1
@@ -3,7 +3,6 @@
3
#include "hex.h"
4
#include "parse-options.h"
5
#include "strbuf.h"
6
-#include "tag.h"
6
#include "replace-object.h"
7
#include "object-file.h"
8
#include "object-store-ll.h"
builtin/rev-list.c
-1
@@ -12,7 +12,6 @@
12
#include "object-name.h"
13
#include "object-file.h"
14
#include "object-store-ll.h"
15
-#include "pack.h"
15
#include "pack-bitmap.h"
16
#include "log-tree.h"
17
#include "graph.h"
builtin/send-pack.c
-1
@@ -2,7 +2,6 @@
2
#include "config.h"
3
#include "hex.h"
4
#include "pkt-line.h"
5
-#include "sideband.h"
5
#include "run-command.h"
6
#include "remote.h"
7
#include "connect.h"
commit-graph.c
-1
@@ -4,7 +4,6 @@
4
#include "gettext.h"
5
#include "hex.h"
6
#include "lockfile.h"
7
-#include "pack.h"
7
#include "packfile.h"
8
#include "commit.h"
9
#include "object.h"
compat/simple-ipc/ipc-shared.c
-3
@@ -1,8 +1,5 @@
1
#include "git-compat-util.h"
2
#include "simple-ipc.h"
3
-#include "strbuf.h"
4
-#include "pkt-line.h"
5
-#include "thread-utils.h"
3
4
#ifndef SUPPORTS_SIMPLE_IPC
5
/*
compat/simple-ipc/ipc-unix-socket.c
-1
@@ -2,7 +2,6 @@
2
#include "gettext.h"
3
#include "simple-ipc.h"
4
#include "strbuf.h"
5
-#include "pkt-line.h"
5
#include "thread-utils.h"
6
#include "trace2.h"
7
#include "unix-socket.h"
fsmonitor-ipc.c
-1
@@ -1,5 +1,4 @@
1
#include "git-compat-util.h"
2
-#include "fsmonitor-ll.h"
2
#include "gettext.h"
3
#include "simple-ipc.h"
4
#include "fsmonitor-ipc.h"
http.c
-1
@@ -4,7 +4,6 @@
4
#include "http.h"
5
#include "config.h"
6
#include "pack.h"
7
-#include "sideband.h"
7
#include "run-command.h"
8
#include "url.h"
9
#include "urlmatch.h"
line-log.c
-1
@@ -12,7 +12,6 @@
12
#include "xdiff-interface.h"
13
#include "strbuf.h"
14
#include "log-tree.h"
15
-#include "userdiff.h"
15
#include "line-log.h"
16
#include "setup.h"
17
#include "strvec.h"
merge-ort.c
-1
@@ -41,7 +41,6 @@
41
#include "revision.h"
42
#include "sparse-index.h"
43
#include "strmap.h"
44
-#include "submodule.h"
44
#include "trace2.h"
45
#include "tree.h"
46
#include "unpack-trees.h"
notes-utils.c
-1
@@ -5,7 +5,6 @@
5
#include "gettext.h"
6
#include "refs.h"
7
#include "notes-utils.h"
8
-#include "repository.h"
8
#include "strbuf.h"
9
10
void create_notes_commit(struct repository *r,
ref-filter.c
-1
@@ -29,7 +29,6 @@
29
#include "commit-reach.h"
30
#include "worktree.h"
31
#include "hashmap.h"
32
-#include "strvec.h"
32
33
static struct ref_msg {
34
const char *gone;
remote-curl.c
-1
@@ -11,7 +11,6 @@
11
#include "run-command.h"
12
#include "pkt-line.h"
13
#include "string-list.h"
14
-#include "sideband.h"
14
#include "strvec.h"
15
#include "credential.h"
16
#include "oid-array.h"
repo-settings.c
-1
@@ -2,7 +2,6 @@
2
#include "config.h"
3
#include "repository.h"
4
#include "midx.h"
5
-#include "compat/fsmonitor/fsm-listen.h"
5
6
static void repo_cfg_bool(struct repository *r, const char *key, int *dest,
7
int def)
t/helper/test-repository.c
-1
@@ -3,7 +3,6 @@
3
#include "commit.h"
4
#include "environment.h"
5
#include "hex.h"
6
-#include "object-store-ll.h"
6
#include "object.h"
7
#include "repository.h"
8
#include "setup.h"
trace2/tr2_ctr.c
-1
@@ -1,5 +1,4 @@
1
#include "git-compat-util.h"
2
-#include "thread-utils.h"
2
#include "trace2/tr2_tgt.h"
3
#include "trace2/tr2_tls.h"
4
#include "trace2/tr2_ctr.h"
trace2/tr2_tmr.c
-1
@@ -1,5 +1,4 @@
1
#include "git-compat-util.h"
2
-#include "thread-utils.h"
2
#include "trace2/tr2_tgt.h"
3
#include "trace2/tr2_tls.h"
4
#include "trace2/tr2_tmr.h"