treewide: remove unnecessary includes in source files

Each of these were checked with gcc -E -I. ${SOURCE_FILE} | grep ${HEADER_FILE} to ensure that removing the direct inclusion of the header actually resulted in that header no longer being included at all (i.e. that no other header pulled it in transitively). ...except for a few cases where we verified that although the header was brought in transitively, nothing from it was directly used in that source file. These cases were: * builtin/credential-cache.c * builtin/pull.c * builtin/send-pack.c 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:14 UTC eea0e59ffbed6e33d171ace5be13cde9faa41639
158 files changed -293
add-patch.c
-1
@@ -12,7 +12,6 @@
12 #include "strvec.h"
13 #include "pathspec.h"
14 #include "color.h"
15 -#include "diff.h"
15 #include "compat/terminal.h"
16 #include "prompt.h"
17
apply.c
-1
@@ -12,7 +12,6 @@
12 #include "base85.h"
13 #include "config.h"
14 #include "object-store-ll.h"
15 -#include "blob.h"
15 #include "delta.h"
16 #include "diff.h"
17 #include "dir.h"
archive.c
-1
@@ -17,7 +17,6 @@
17 #include "archive.h"
18 #include "parse-options.h"
19 #include "unpack-trees.h"
20 -#include "dir.h"
20 #include "quote.h"
21
22 static char const * const archive_usage[] = {
bisect.c
-1
@@ -9,7 +9,6 @@
9 #include "refs.h"
10 #include "list-objects.h"
11 #include "quote.h"
12 -#include "hash-lookup.h"
12 #include "run-command.h"
13 #include "log-tree.h"
14 #include "bisect.h"
blob.c
-1
@@ -1,6 +1,5 @@
1 #include "git-compat-util.h"
2 #include "blob.h"
3 -#include "repository.h"
3 #include "alloc.h"
4
5 const char *blob_type = "blob";
bloom.c
-1
@@ -2,7 +2,6 @@
2 #include "bloom.h"
3 #include "diff.h"
4 #include "diffcore.h"
5 -#include "revision.h"
5 #include "hashmap.h"
6 #include "commit-graph.h"
7 #include "commit.h"
builtin/add.c
-3
@@ -12,14 +12,11 @@
12 #include "dir.h"
13 #include "gettext.h"
14 #include "pathspec.h"
15 -#include "exec-cmd.h"
16 -#include "cache-tree.h"
15 #include "run-command.h"
16 #include "parse-options.h"
17 #include "path.h"
18 #include "preload-index.h"
19 #include "diff.h"
22 -#include "diffcore.h"
20 #include "read-cache.h"
21 #include "repository.h"
22 #include "revision.h"
builtin/am.c
-4
@@ -10,7 +10,6 @@
10 #include "config.h"
11 #include "editor.h"
12 #include "environment.h"
13 -#include "exec-cmd.h"
13 #include "gettext.h"
14 #include "hex.h"
15 #include "parse-options.h"
@@ -24,7 +23,6 @@
23 #include "refs.h"
24 #include "commit.h"
25 #include "diff.h"
27 -#include "diffcore.h"
26 #include "unpack-trees.h"
27 #include "branch.h"
28 #include "object-name.h"
@@ -35,11 +33,9 @@
33 #include "log-tree.h"
34 #include "notes-utils.h"
35 #include "rerere.h"
38 -#include "prompt.h"
36 #include "mailinfo.h"
37 #include "apply.h"
38 #include "string-list.h"
42 -#include "packfile.h"
39 #include "pager.h"
40 #include "path.h"
41 #include "repository.h"
builtin/apply.c
-1
@@ -1,6 +1,5 @@
1 #include "builtin.h"
2 #include "gettext.h"
3 -#include "parse-options.h"
3 #include "repository.h"
4 #include "apply.h"
5
builtin/bisect.c
-1
@@ -7,7 +7,6 @@
7 #include "parse-options.h"
8 #include "bisect.h"
9 #include "refs.h"
10 -#include "dir.h"
10 #include "strvec.h"
11 #include "run-command.h"
12 #include "oid-array.h"
builtin/blame.c
-1
@@ -25,7 +25,6 @@
25 #include "userdiff.h"
26 #include "line-range.h"
27 #include "line-log.h"
28 -#include "dir.h"
28 #include "progress.h"
29 #include "object-name.h"
30 #include "object-store-ll.h"
builtin/branch.c
-3
@@ -17,13 +17,10 @@
17 #include "remote.h"
18 #include "parse-options.h"
19 #include "branch.h"
20 -#include "diff.h"
20 #include "path.h"
22 -#include "revision.h"
21 #include "string-list.h"
22 #include "column.h"
23 #include "utf8.h"
26 -#include "wt-status.h"
24 #include "ref-filter.h"
25 #include "worktree.h"
26 #include "help.h"
builtin/cat-file.c
-1
@@ -15,7 +15,6 @@
15 #include "parse-options.h"
16 #include "userdiff.h"
17 #include "streaming.h"
18 -#include "tree-walk.h"
18 #include "oid-array.h"
19 #include "packfile.h"
20 #include "object-file.h"
builtin/checkout-index.c
-1
@@ -7,7 +7,6 @@
7 #define USE_THE_INDEX_VARIABLE
8 #include "builtin.h"
9 #include "config.h"
10 -#include "dir.h"
10 #include "gettext.h"
11 #include "lockfile.h"
12 #include "quote.h"
builtin/checkout.c
-3
@@ -1,7 +1,6 @@
1 #define USE_THE_INDEX_VARIABLE
2 #include "builtin.h"
3 #include "advice.h"
4 -#include "blob.h"
4 #include "branch.h"
5 #include "cache-tree.h"
6 #include "checkout.h"
@@ -27,10 +26,8 @@
26 #include "remote.h"
27 #include "resolve-undo.h"
28 #include "revision.h"
30 -#include "run-command.h"
29 #include "setup.h"
30 #include "submodule.h"
33 -#include "submodule-config.h"
31 #include "symlinks.h"
32 #include "trace2.h"
33 #include "tree.h"
builtin/clone.c
-1
@@ -19,7 +19,6 @@
19 #include "hex.h"
20 #include "lockfile.h"
21 #include "parse-options.h"
22 -#include "fetch-pack.h"
22 #include "refs.h"
23 #include "refspec.h"
24 #include "object-file.h"
builtin/commit-graph.c
-1
@@ -1,7 +1,6 @@
1 #include "builtin.h"
2 #include "commit.h"
3 #include "config.h"
4 -#include "dir.h"
4 #include "environment.h"
5 #include "gettext.h"
6 #include "hex.h"
builtin/commit-tree.c
-3
@@ -11,9 +11,6 @@
11 #include "object-store-ll.h"
12 #include "repository.h"
13 #include "commit.h"
14 -#include "tree.h"
15 -#include "utf8.h"
16 -#include "gpg-interface.h"
14 #include "parse-options.h"
15
16 static const char * const commit_tree_usage[] = {
builtin/commit.c
-8
@@ -16,17 +16,12 @@
16 #include "editor.h"
17 #include "environment.h"
18 #include "diff.h"
19 -#include "diffcore.h"
19 #include "commit.h"
20 #include "gettext.h"
21 #include "revision.h"
22 #include "wt-status.h"
23 #include "run-command.h"
25 -#include "hook.h"
26 -#include "refs.h"
27 -#include "log-tree.h"
24 #include "strbuf.h"
29 -#include "utf8.h"
25 #include "object-name.h"
26 #include "parse-options.h"
27 #include "path.h"
@@ -35,9 +30,6 @@
30 #include "string-list.h"
31 #include "rerere.h"
32 #include "unpack-trees.h"
38 -#include "quote.h"
39 -#include "submodule.h"
40 -#include "gpg-interface.h"
33 #include "column.h"
34 #include "sequencer.h"
35 #include "sparse-index.h"
builtin/credential-cache.c
-2
@@ -7,8 +7,6 @@
7
8 #ifndef NO_UNIX_SOCKETS
9
10 -#include "credential.h"
11 -#include "string-list.h"
10 #include "unix-socket.h"
11 #include "run-command.h"
12
builtin/describe.c
-2
@@ -7,9 +7,7 @@
7 #include "lockfile.h"
8 #include "commit.h"
9 #include "tag.h"
10 -#include "blob.h"
10 #include "refs.h"
12 -#include "exec-cmd.h"
11 #include "object-name.h"
12 #include "parse-options.h"
13 #include "read-cache-ll.h"
builtin/diff-files.c
-1
@@ -11,7 +11,6 @@
11 #include "preload-index.h"
12 #include "repository.h"
13 #include "revision.h"
14 -#include "submodule.h"
14
15 static const char diff_files_usage[] =
16 "git diff-files [-q] [-0 | -1 | -2 | -3 | -c | --cc] [<common-diff-options>] [<path>...]"
builtin/diff-index.c
-2
@@ -7,8 +7,6 @@
7 #include "repository.h"
8 #include "revision.h"
9 #include "setup.h"
10 -#include "sparse-index.h"
11 -#include "submodule.h"
10
11 static const char diff_cache_usage[] =
12 "git diff-index [-m] [--cached] [--merge-base] "
builtin/diff-tree.c
-1
@@ -6,7 +6,6 @@
6 #include "gettext.h"
7 #include "hex.h"
8 #include "log-tree.h"
9 -#include "submodule.h"
9 #include "read-cache-ll.h"
10 #include "repository.h"
11 #include "revision.h"
builtin/diff.c
-2
@@ -10,7 +10,6 @@
10 #include "lockfile.h"
11 #include "color.h"
12 #include "commit.h"
13 -#include "blob.h"
13 #include "gettext.h"
14 #include "tag.h"
15 #include "diff.h"
@@ -21,7 +20,6 @@
20 #include "revision.h"
21 #include "log-tree.h"
22 #include "setup.h"
24 -#include "submodule.h"
23 #include "oid-array.h"
24 #include "tree.h"
25
builtin/difftool.c
-1
@@ -18,7 +18,6 @@
18 #include "copy.h"
19 #include "run-command.h"
20 #include "environment.h"
21 -#include "exec-cmd.h"
21 #include "gettext.h"
22 #include "hex.h"
23 #include "parse-options.h"
builtin/fast-export.c
-1
@@ -25,7 +25,6 @@
25 #include "quote.h"
26 #include "remote.h"
27 #include "blob.h"
28 -#include "commit-slab.h"
28
29 static const char *fast_export_usage[] = {
30 N_("git fast-export [<rev-list-opts>]"),
builtin/fetch.c
-2
@@ -26,7 +26,6 @@
26 #include "connected.h"
27 #include "strvec.h"
28 #include "utf8.h"
29 -#include "packfile.h"
29 #include "pager.h"
30 #include "path.h"
31 #include "pkt-line.h"
@@ -38,7 +37,6 @@
37 #include "shallow.h"
38 #include "trace.h"
39 #include "trace2.h"
41 -#include "worktree.h"
40 #include "bundle-uri.h"
41
42 #define FORCED_UPDATES_DELAY_WARNING_IN_MS (10 * 1000)
builtin/for-each-ref.c
-2
@@ -1,13 +1,11 @@
1 #include "builtin.h"
2 #include "config.h"
3 #include "gettext.h"
4 -#include "refs.h"
4 #include "object.h"
5 #include "parse-options.h"
6 #include "ref-filter.h"
7 #include "strbuf.h"
8 #include "strvec.h"
10 -#include "commit-reach.h"
9
10 static char const * const for_each_ref_usage[] = {
11 N_("git for-each-ref [<options>] [<pattern>]"),
builtin/fsck.c
-2
@@ -13,10 +13,8 @@
13 #include "tree-walk.h"
14 #include "fsck.h"
15 #include "parse-options.h"
16 -#include "dir.h"
16 #include "progress.h"
17 #include "streaming.h"
19 -#include "decorate.h"
18 #include "packfile.h"
19 #include "object-file.h"
20 #include "object-name.h"
builtin/get-tar-commit-id.c
-1
@@ -4,7 +4,6 @@
4 #include "builtin.h"
5 #include "commit.h"
6 #include "tar.h"
7 -#include "quote.h"
7
8 static const char builtin_get_tar_commit_id_usage[] =
9 "git get-tar-commit-id";
builtin/grep.c
-3
@@ -9,9 +9,6 @@
9 #include "hex.h"
10 #include "repository.h"
11 #include "config.h"
12 -#include "blob.h"
13 -#include "tree.h"
14 -#include "commit.h"
12 #include "tag.h"
13 #include "tree-walk.h"
14 #include "parse-options.h"
builtin/hash-object.c
-1
@@ -14,7 +14,6 @@
14 #include "blob.h"
15 #include "quote.h"
16 #include "parse-options.h"
17 -#include "exec-cmd.h"
17 #include "setup.h"
18 #include "strbuf.h"
19 #include "write-or-die.h"
builtin/hook.c
-1
@@ -3,7 +3,6 @@
3 #include "gettext.h"
4 #include "hook.h"
5 #include "parse-options.h"
6 -#include "strbuf.h"
6 #include "strvec.h"
7
8 #define BUILTIN_HOOK_RUN_USAGE \
builtin/index-pack.c
-2
@@ -8,11 +8,9 @@
8 #include "csum-file.h"
9 #include "blob.h"
10 #include "commit.h"
11 -#include "tag.h"
11 #include "tree.h"
12 #include "progress.h"
13 #include "fsck.h"
15 -#include "exec-cmd.h"
14 #include "strbuf.h"
15 #include "streaming.h"
16 #include "thread-utils.h"
builtin/init-db.c
-1
@@ -5,7 +5,6 @@
5 */
6 #include "builtin.h"
7 #include "abspath.h"
8 -#include "config.h"
8 #include "environment.h"
9 #include "gettext.h"
10 #include "object-file.h"
builtin/log.c
-2
@@ -26,7 +26,6 @@
26 #include "tag.h"
27 #include "reflog-walk.h"
28 #include "patch-ids.h"
29 -#include "run-command.h"
29 #include "shortlog.h"
30 #include "remote.h"
31 #include "string-list.h"
@@ -36,7 +35,6 @@
35 #include "streaming.h"
36 #include "version.h"
37 #include "mailmap.h"
39 -#include "gpg-interface.h"
38 #include "progress.h"
39 #include "commit-slab.h"
40 #include "repository.h"
builtin/ls-files.c
-4
@@ -14,19 +14,15 @@
14 #include "gettext.h"
15 #include "object-name.h"
16 #include "strbuf.h"
17 -#include "tree.h"
18 -#include "cache-tree.h"
17 #include "parse-options.h"
18 #include "resolve-undo.h"
19 #include "string-list.h"
20 #include "path.h"
21 #include "pathspec.h"
22 #include "read-cache.h"
25 -#include "run-command.h"
23 #include "setup.h"
24 #include "sparse-index.h"
25 #include "submodule.h"
29 -#include "submodule-config.h"
26 #include "object-store.h"
27 #include "hex.h"
28
builtin/ls-remote.c
-1
@@ -5,7 +5,6 @@
5 #include "pkt-line.h"
6 #include "ref-filter.h"
7 #include "remote.h"
8 -#include "refs.h"
8 #include "parse-options.h"
9 #include "wildmatch.h"
10
builtin/ls-tree.c
-2
@@ -9,9 +9,7 @@
9 #include "hex.h"
10 #include "object-name.h"
11 #include "object-store-ll.h"
12 -#include "blob.h"
12 #include "tree.h"
14 -#include "commit.h"
13 #include "path.h"
14 #include "quote.h"
15 #include "parse-options.h"
builtin/mailinfo.c
-1
@@ -6,7 +6,6 @@
6 #include "abspath.h"
7 #include "environment.h"
8 #include "gettext.h"
9 -#include "utf8.h"
9 #include "strbuf.h"
10 #include "mailinfo.h"
11 #include "parse-options.h"
builtin/merge-base.c
-3
@@ -3,9 +3,6 @@
3 #include "commit.h"
4 #include "gettext.h"
5 #include "hex.h"
6 -#include "refs.h"
7 -#include "diff.h"
8 -#include "revision.h"
6 #include "object-name.h"
7 #include "parse-options.h"
8 #include "repository.h"
builtin/merge-recursive.c
-3
@@ -1,13 +1,10 @@
1 #include "builtin.h"
2 #include "advice.h"
3 -#include "commit.h"
3 #include "gettext.h"
4 #include "hash.h"
6 -#include "tag.h"
5 #include "merge-recursive.h"
6 #include "object-name.h"
7 #include "repository.h"
10 -#include "xdiff-interface.h"
8
9 static const char builtin_merge_recursive_usage[] =
10 "git %s <base>... -- <head> <remote> ...";
builtin/merge-tree.c
-1
@@ -13,7 +13,6 @@
13 #include "parse-options.h"
14 #include "repository.h"
15 #include "blob.h"
16 -#include "exec-cmd.h"
16 #include "merge-blobs.h"
17 #include "quote.h"
18 #include "tree.h"
builtin/merge.c
-4
@@ -31,8 +31,6 @@
31 #include "unpack-trees.h"
32 #include "cache-tree.h"
33 #include "dir.h"
34 -#include "utf8.h"
35 -#include "log-tree.h"
34 #include "color.h"
35 #include "rerere.h"
36 #include "help.h"
@@ -42,10 +40,8 @@
40 #include "resolve-undo.h"
41 #include "remote.h"
42 #include "fmt-merge-msg.h"
45 -#include "gpg-interface.h"
43 #include "sequencer.h"
44 #include "string-list.h"
48 -#include "packfile.h"
45 #include "tag.h"
46 #include "alias.h"
47 #include "branch.h"
builtin/mv.c
-1
@@ -15,7 +15,6 @@
15 #include "pathspec.h"
16 #include "lockfile.h"
17 #include "dir.h"
18 -#include "cache-tree.h"
18 #include "string-list.h"
19 #include "parse-options.h"
20 #include "read-cache-ll.h"
builtin/notes.c
-2
@@ -9,7 +9,6 @@
9
10 #include "builtin.h"
11 #include "config.h"
12 -#include "alloc.h"
12 #include "editor.h"
13 #include "environment.h"
14 #include "gettext.h"
@@ -19,7 +18,6 @@
18 #include "object-store-ll.h"
19 #include "path.h"
20 #include "repository.h"
22 -#include "blob.h"
21 #include "pretty.h"
22 #include "refs.h"
23 #include "exec-cmd.h"
builtin/pack-objects.c
-3
@@ -6,10 +6,8 @@
6 #include "config.h"
7 #include "attr.h"
8 #include "object.h"
9 -#include "blob.h"
9 #include "commit.h"
10 #include "tag.h"
12 -#include "tree.h"
11 #include "delta.h"
12 #include "pack.h"
13 #include "pack-revindex.h"
@@ -18,7 +16,6 @@
16 #include "diff.h"
17 #include "revision.h"
18 #include "list-objects.h"
21 -#include "list-objects-filter.h"
19 #include "list-objects-filter-options.h"
20 #include "pack-objects.h"
21 #include "progress.h"
builtin/pull.c
-5
@@ -14,7 +14,6 @@
14 #include "merge.h"
15 #include "object-name.h"
16 #include "parse-options.h"
17 -#include "exec-cmd.h"
17 #include "run-command.h"
18 #include "oid-array.h"
19 #include "remote.h"
@@ -24,15 +23,11 @@
23 #include "rebase.h"
24 #include "refs.h"
25 #include "refspec.h"
27 -#include "revision.h"
26 #include "submodule.h"
27 #include "submodule-config.h"
30 -#include "tempfile.h"
31 -#include "lockfile.h"
28 #include "wt-status.h"
29 #include "commit-reach.h"
30 #include "sequencer.h"
35 -#include "packfile.h"
31
32 /**
33 * Parses the value of --rebase. If value is a false value, returns
builtin/push.c
-1
@@ -7,7 +7,6 @@
7 #include "config.h"
8 #include "environment.h"
9 #include "gettext.h"
10 -#include "refs.h"
10 #include "refspec.h"
11 #include "run-command.h"
12 #include "remote.h"
builtin/range-diff.c
-1
@@ -5,7 +5,6 @@
5 #include "range-diff.h"
6 #include "config.h"
7 #include "repository.h"
8 -#include "revision.h"
8
9 static const char * const builtin_range_diff_usage[] = {
10 N_("git range-diff [<options>] <old-base>..<old-tip> <new-base>..<new-tip>"),
builtin/read-tree.c
-2
@@ -16,14 +16,12 @@
16 #include "tree-walk.h"
17 #include "cache-tree.h"
18 #include "unpack-trees.h"
19 -#include "dir.h"
19 #include "parse-options.h"
20 #include "repository.h"
21 #include "resolve-undo.h"
22 #include "setup.h"
23 #include "sparse-index.h"
24 #include "submodule.h"
26 -#include "submodule-config.h"
25
26 static int nr_trees;
27 static int read_empty;
builtin/rebase.c
-4
@@ -11,14 +11,10 @@
11 #include "gettext.h"
12 #include "hex.h"
13 #include "run-command.h"
14 -#include "exec-cmd.h"
14 #include "strvec.h"
15 #include "dir.h"
17 -#include "packfile.h"
16 #include "refs.h"
19 -#include "quote.h"
17 #include "config.h"
21 -#include "cache-tree.h"
18 #include "unpack-trees.h"
19 #include "lockfile.h"
20 #include "object-file.h"
builtin/receive-pack.c
-1
@@ -22,7 +22,6 @@
22 #include "connected.h"
23 #include "strvec.h"
24 #include "version.h"
25 -#include "tag.h"
25 #include "gpg-interface.h"
26 #include "sigchain.h"
27 #include "fsck.h"
builtin/repack.c
-1
@@ -8,7 +8,6 @@
8 #include "path.h"
9 #include "run-command.h"
10 #include "server-info.h"
11 -#include "sigchain.h"
11 #include "strbuf.h"
12 #include "string-list.h"
13 #include "strvec.h"
builtin/rerere.c
-1
@@ -1,6 +1,5 @@
1 #include "builtin.h"
2 #include "config.h"
3 -#include "dir.h"
3 #include "gettext.h"
4 #include "parse-options.h"
5 #include "repository.h"
builtin/reset.c
-3
@@ -16,10 +16,8 @@
16 #include "hash.h"
17 #include "hex.h"
18 #include "lockfile.h"
19 -#include "tag.h"
19 #include "object.h"
20 #include "pretty.h"
22 -#include "run-command.h"
21 #include "refs.h"
22 #include "diff.h"
23 #include "diffcore.h"
@@ -33,7 +31,6 @@
31 #include "setup.h"
32 #include "sparse-index.h"
33 #include "submodule.h"
36 -#include "submodule-config.h"
34 #include "trace.h"
35 #include "trace2.h"
36 #include "dir.h"
builtin/rev-list.c
-1
@@ -7,7 +7,6 @@
7 #include "hex.h"
8 #include "revision.h"
9 #include "list-objects.h"
10 -#include "list-objects-filter.h"
10 #include "list-objects-filter-options.h"
11 #include "object.h"
12 #include "object-name.h"
builtin/revert.c
-2
@@ -1,5 +1,4 @@
1 #include "git-compat-util.h"
2 -#include "config.h"
2 #include "builtin.h"
3 #include "parse-options.h"
4 #include "diff.h"
@@ -7,7 +6,6 @@
6 #include "repository.h"
7 #include "revision.h"
8 #include "rerere.h"
10 -#include "dir.h"
9 #include "sequencer.h"
10 #include "branch.h"
11
builtin/rm.c
-1
@@ -9,7 +9,6 @@
9 #include "config.h"
10 #include "lockfile.h"
11 #include "dir.h"
12 -#include "cache-tree.h"
12 #include "gettext.h"
13 #include "hash.h"
14 #include "tree-walk.h"
builtin/send-pack.c
-4
@@ -1,8 +1,6 @@
1 #include "builtin.h"
2 #include "config.h"
3 -#include "commit.h"
3 #include "hex.h"
5 -#include "refs.h"
4 #include "pkt-line.h"
5 #include "sideband.h"
6 #include "run-command.h"
@@ -11,9 +9,7 @@
9 #include "send-pack.h"
10 #include "quote.h"
11 #include "transport.h"
14 -#include "version.h"
12 #include "oid-array.h"
16 -#include "gpg-interface.h"
13 #include "gettext.h"
14 #include "protocol.h"
15 #include "parse-options.h"
builtin/show-ref.c
-1
@@ -6,7 +6,6 @@
6 #include "object-name.h"
7 #include "object-store-ll.h"
8 #include "object.h"
9 -#include "tag.h"
9 #include "string-list.h"
10 #include "parse-options.h"
11
builtin/sparse-checkout.c
-4
@@ -8,14 +8,10 @@
8 #include "parse-options.h"
9 #include "pathspec.h"
10 #include "repository.h"
11 -#include "run-command.h"
11 #include "strbuf.h"
12 #include "string-list.h"
14 -#include "cache-tree.h"
13 #include "lockfile.h"
16 -#include "resolve-undo.h"
14 #include "unpack-trees.h"
18 -#include "wt-status.h"
15 #include "quote.h"
16 #include "setup.h"
17 #include "sparse-index.h"
builtin/stash.c
-1
@@ -26,7 +26,6 @@
26 #include "sparse-index.h"
27 #include "log-tree.h"
28 #include "diffcore.h"
29 -#include "exec-cmd.h"
29 #include "reflog.h"
30 #include "add-interactive.h"
31
builtin/submodule--helper.c
-1
@@ -22,7 +22,6 @@
22 #include "remote.h"
23 #include "refs.h"
24 #include "refspec.h"
25 -#include "connect.h"
25 #include "revision.h"
26 #include "diffcore.h"
27 #include "diff.h"
builtin/tag.c
-1
@@ -18,7 +18,6 @@
18 #include "object-store-ll.h"
19 #include "path.h"
20 #include "tag.h"
21 -#include "run-command.h"
21 #include "parse-options.h"
22 #include "diff.h"
23 #include "revision.h"
builtin/unpack-objects.c
-4
@@ -10,12 +10,8 @@
10 #include "delta.h"
11 #include "pack.h"
12 #include "blob.h"
13 -#include "commit.h"
13 #include "replace-object.h"
14 #include "strbuf.h"
16 -#include "tag.h"
17 -#include "tree.h"
18 -#include "tree-walk.h"
15 #include "progress.h"
16 #include "decorate.h"
17 #include "fsck.h"
builtin/update-ref.c
-1
@@ -7,7 +7,6 @@
7 #include "parse-options.h"
8 #include "quote.h"
9 #include "repository.h"
10 -#include "strvec.h"
10
11 static const char * const git_update_ref_usage[] = {
12 N_("git update-ref [<options>] -d <refname> [<old-val>]"),
builtin/verify-commit.c
-2
@@ -9,10 +9,8 @@
9 #include "config.h"
10 #include "gettext.h"
11 #include "object-name.h"
12 -#include "object-store-ll.h"
12 #include "repository.h"
13 #include "commit.h"
15 -#include "run-command.h"
14 #include "parse-options.h"
15 #include "gpg-interface.h"
16
builtin/verify-tag.c
-1
@@ -9,7 +9,6 @@
9 #include "config.h"
10 #include "gettext.h"
11 #include "tag.h"
12 -#include "run-command.h"
12 #include "object-name.h"
13 #include "parse-options.h"
14 #include "gpg-interface.h"
bulk-checkin.c
-1
@@ -11,7 +11,6 @@
11 #include "csum-file.h"
12 #include "pack.h"
13 #include "strbuf.h"
14 -#include "string-list.h"
14 #include "tmp-objdir.h"
15 #include "packfile.h"
16 #include "object-file.h"
bundle-uri.c
-1
@@ -4,7 +4,6 @@
4 #include "copy.h"
5 #include "environment.h"
6 #include "gettext.h"
7 -#include "object-store-ll.h"
7 #include "refs.h"
8 #include "run-command.h"
9 #include "hashmap.h"
cache-tree.c
-1
@@ -11,7 +11,6 @@
11 #include "read-cache-ll.h"
12 #include "replace-object.h"
13 #include "promisor-remote.h"
14 -#include "sparse-index.h"
14 #include "trace.h"
15 #include "trace2.h"
16
combine-diff.c
-1
@@ -2,7 +2,6 @@
2 #include "object-store-ll.h"
3 #include "commit.h"
4 #include "convert.h"
5 -#include "blob.h"
5 #include "diff.h"
6 #include "diffcore.h"
7 #include "environment.h"
commit-graph.c
-1
@@ -8,7 +8,6 @@
8 #include "commit.h"
9 #include "object.h"
10 #include "refs.h"
11 -#include "revision.h"
11 #include "hash-lookup.h"
12 #include "commit-graph.h"
13 #include "object-file.h"
commit-reach.c
-1
@@ -4,7 +4,6 @@
4 #include "decorate.h"
5 #include "hex.h"
6 #include "prio-queue.h"
7 -#include "tree.h"
7 #include "ref-filter.h"
8 #include "revision.h"
9 #include "tag.h"
commit.c
-2
@@ -8,7 +8,6 @@
8 #include "repository.h"
9 #include "object-name.h"
10 #include "object-store-ll.h"
11 -#include "pkt-line.h"
11 #include "utf8.h"
12 #include "diff.h"
13 #include "revision.h"
@@ -23,7 +22,6 @@
22 #include "advice.h"
23 #include "refs.h"
24 #include "commit-reach.h"
26 -#include "run-command.h"
25 #include "setup.h"
26 #include "shallow.h"
27 #include "tree.h"
config.c
-3
@@ -30,15 +30,12 @@
30 #include "pager.h"
31 #include "path.h"
32 #include "utf8.h"
33 -#include "dir.h"
33 #include "color.h"
35 -#include "replace-object.h"
34 #include "refs.h"
35 #include "setup.h"
36 #include "strvec.h"
37 #include "trace2.h"
38 #include "wildmatch.h"
41 -#include "worktree.h"
39 #include "ws.h"
40 #include "write-or-die.h"
41
delta-islands.c
-5
@@ -1,18 +1,13 @@
1 #include "git-compat-util.h"
2 -#include "attr.h"
2 #include "object.h"
4 -#include "blob.h"
3 #include "commit.h"
4 #include "gettext.h"
5 #include "hex.h"
6 #include "tag.h"
7 #include "tree.h"
10 -#include "delta.h"
8 #include "pack.h"
9 #include "tree-walk.h"
10 #include "diff.h"
14 -#include "revision.h"
15 -#include "list-objects.h"
11 #include "progress.h"
12 #include "refs.h"
13 #include "khash.h"
diff-lib.c
-1
@@ -2,7 +2,6 @@
2 * Copyright (C) 2005 Junio C Hamano
3 */
4 #include "git-compat-util.h"
5 -#include "quote.h"
5 #include "commit.h"
6 #include "diff.h"
7 #include "diffcore.h"
diff-no-index.c
-3
@@ -8,13 +8,10 @@
8 #include "abspath.h"
9 #include "color.h"
10 #include "commit.h"
11 -#include "blob.h"
12 -#include "tag.h"
11 #include "diff.h"
12 #include "diffcore.h"
13 #include "gettext.h"
14 #include "revision.h"
17 -#include "log-tree.h"
15 #include "parse-options.h"
16 #include "string-list.h"
17 #include "dir.h"
diff.c
-2
@@ -16,12 +16,10 @@
16 #include "hex.h"
17 #include "xdiff-interface.h"
18 #include "color.h"
19 -#include "attr.h"
19 #include "run-command.h"
20 #include "utf8.h"
21 #include "object-store-ll.h"
22 #include "userdiff.h"
24 -#include "submodule-config.h"
23 #include "submodule.h"
24 #include "hashmap.h"
25 #include "mem-pool.h"
diffcore-break.c
-1
@@ -2,7 +2,6 @@
2 * Copyright (C) 2005 Junio C Hamano
3 */
4 #include "git-compat-util.h"
5 -#include "diff.h"
5 #include "diffcore.h"
6 #include "hash.h"
7 #include "object.h"
diffcore-delta.c
-1
@@ -1,5 +1,4 @@
1 #include "git-compat-util.h"
2 -#include "diff.h"
2 #include "diffcore.h"
3
4 /*
dir.c
-1
@@ -16,7 +16,6 @@
16 #include "object-file.h"
17 #include "object-store-ll.h"
18 #include "path.h"
19 -#include "attr.h"
19 #include "refs.h"
20 #include "wildmatch.h"
21 #include "pathspec.h"
entry.c
-1
@@ -1,5 +1,4 @@
1 #include "git-compat-util.h"
2 -#include "blob.h"
2 #include "object-store-ll.h"
3 #include "dir.h"
4 #include "environment.h"
exec-cmd.c
-1
@@ -4,7 +4,6 @@
4 #include "exec-cmd.h"
5 #include "gettext.h"
6 #include "path.h"
7 -#include "quote.h"
7 #include "run-command.h"
8 #include "strvec.h"
9 #include "trace.h"
fetch-pack.c
-2
@@ -10,7 +10,6 @@
10 #include "pkt-line.h"
11 #include "commit.h"
12 #include "tag.h"
13 -#include "exec-cmd.h"
13 #include "pack.h"
14 #include "sideband.h"
15 #include "fetch-pack.h"
@@ -18,7 +17,6 @@
17 #include "run-command.h"
18 #include "connect.h"
19 #include "trace2.h"
21 -#include "transport.h"
20 #include "version.h"
21 #include "oid-array.h"
22 #include "oidset.h"
fsck.c
-1
@@ -16,7 +16,6 @@
16 #include "refs.h"
17 #include "url.h"
18 #include "utf8.h"
19 -#include "decorate.h"
19 #include "oidset.h"
20 #include "packfile.h"
21 #include "submodule-config.h"
gettext.c
-2
@@ -7,9 +7,7 @@
7 #include "environment.h"
8 #include "exec-cmd.h"
9 #include "gettext.h"
10 -#include "strbuf.h"
10 #include "utf8.h"
12 -#include "config.h"
11
12 #ifndef NO_GETTEXT
13 # include <libintl.h>
gpg-interface.c
-1
@@ -12,7 +12,6 @@
12 #include "sigchain.h"
13 #include "tempfile.h"
14 #include "alias.h"
15 -#include "environment.h"
15
16 static int git_gpg_config(const char *, const char *,
17 const struct config_context *, void *);
grep.c
-1
@@ -9,7 +9,6 @@
9 #include "xdiff-interface.h"
10 #include "diff.h"
11 #include "diffcore.h"
12 -#include "commit.h"
12 #include "quote.h"
13 #include "help.h"
14
http-fetch.c
-1
@@ -1,6 +1,5 @@
1 #include "git-compat-util.h"
2 #include "config.h"
3 -#include "exec-cmd.h"
3 #include "gettext.h"
4 #include "hex.h"
5 #include "http.h"
http-push.c
-2
@@ -6,10 +6,8 @@
6 #include "tag.h"
7 #include "blob.h"
8 #include "http.h"
9 -#include "refs.h"
9 #include "diff.h"
10 #include "revision.h"
12 -#include "exec-cmd.h"
11 #include "remote.h"
12 #include "list-objects.h"
13 #include "setup.h"
http-walker.c
-1
@@ -1,6 +1,5 @@
1 #include "git-compat-util.h"
2 #include "repository.h"
3 -#include "commit.h"
3 #include "hex.h"
4 #include "walker.h"
5 #include "http.h"
http.c
-1
@@ -15,7 +15,6 @@
15 #include "trace.h"
16 #include "transport.h"
17 #include "packfile.h"
18 -#include "protocol.h"
18 #include "string-list.h"
19 #include "object-file.h"
20 #include "object-store-ll.h"
imap-send.c
-2
@@ -24,12 +24,10 @@
24 #include "git-compat-util.h"
25 #include "config.h"
26 #include "credential.h"
27 -#include "exec-cmd.h"
27 #include "gettext.h"
28 #include "run-command.h"
29 #include "parse-options.h"
30 #include "setup.h"
32 -#include "strbuf.h"
31 #if defined(NO_OPENSSL) && !defined(HAVE_OPENSSL_CSPRNG)
32 typedef void *SSL;
33 #endif
line-log.c
-2
@@ -2,7 +2,6 @@
2 #include "line-range.h"
3 #include "hex.h"
4 #include "tag.h"
5 -#include "blob.h"
5 #include "tree.h"
6 #include "diff.h"
7 #include "commit.h"
@@ -12,7 +11,6 @@
11 #include "xdiff-interface.h"
12 #include "strbuf.h"
13 #include "log-tree.h"
15 -#include "graph.h"
14 #include "userdiff.h"
15 #include "line-log.h"
16 #include "setup.h"
line-range.c
-1
@@ -1,7 +1,6 @@
1 #include "git-compat-util.h"
2 #include "line-range.h"
3 #include "xdiff-interface.h"
4 -#include "strbuf.h"
4 #include "userdiff.h"
5
6 /*
list-objects-filter-options.c
-5
@@ -1,11 +1,6 @@
1 #include "git-compat-util.h"
2 -#include "commit.h"
2 #include "config.h"
3 #include "gettext.h"
5 -#include "revision.h"
6 -#include "strvec.h"
7 -#include "list-objects.h"
8 -#include "list-objects-filter.h"
4 #include "list-objects-filter-options.h"
5 #include "promisor-remote.h"
6 #include "trace.h"
list-objects-filter.c
-5
@@ -2,14 +2,9 @@
2 #include "dir.h"
3 #include "gettext.h"
4 #include "hex.h"
5 -#include "tag.h"
5 #include "commit.h"
7 -#include "tree.h"
8 -#include "blob.h"
6 #include "diff.h"
10 -#include "tree-walk.h"
7 #include "revision.h"
12 -#include "list-objects.h"
8 #include "list-objects-filter.h"
9 #include "list-objects-filter-options.h"
10 #include "oidmap.h"
ls-refs.c
-1
@@ -5,7 +5,6 @@
5 #include "hex.h"
6 #include "repository.h"
7 #include "refs.h"
8 -#include "remote.h"
8 #include "strvec.h"
9 #include "ls-refs.h"
10 #include "pkt-line.h"
merge-blobs.c
-2
@@ -1,6 +1,4 @@
1 #include "git-compat-util.h"
2 -#include "run-command.h"
3 -#include "xdiff-interface.h"
2 #include "merge-ll.h"
3 #include "blob.h"
4 #include "merge-blobs.h"
merge-ort.c
-2
@@ -19,7 +19,6 @@
19
20 #include "alloc.h"
21 #include "attr.h"
22 -#include "blob.h"
22 #include "cache-tree.h"
23 #include "commit.h"
24 #include "commit-reach.h"
@@ -42,7 +41,6 @@
41 #include "revision.h"
42 #include "sparse-index.h"
43 #include "strmap.h"
45 -#include "submodule-config.h"
44 #include "submodule.h"
45 #include "trace2.h"
46 #include "tree.h"
merge-recursive.c
-5
@@ -6,10 +6,7 @@
6 #include "git-compat-util.h"
7 #include "merge-recursive.h"
8
9 -#include "advice.h"
9 #include "alloc.h"
11 -#include "attr.h"
12 -#include "blob.h"
10 #include "cache-tree.h"
11 #include "commit.h"
12 #include "commit-reach.h"
@@ -32,8 +29,6 @@
29 #include "revision.h"
30 #include "sparse-index.h"
31 #include "string-list.h"
35 -#include "submodule-config.h"
36 -#include "submodule.h"
32 #include "symlinks.h"
33 #include "tag.h"
34 #include "tree-walk.h"
merge.c
-3
@@ -1,6 +1,4 @@
1 #include "git-compat-util.h"
2 -#include "diff.h"
3 -#include "diffcore.h"
2 #include "gettext.h"
3 #include "hash.h"
4 #include "hex.h"
@@ -13,7 +11,6 @@
11 #include "tree.h"
12 #include "tree-walk.h"
13 #include "unpack-trees.h"
16 -#include "dir.h"
14
15 static const char *merge_argument(struct commit *commit)
16 {
negotiator/noop.c
-1
@@ -1,6 +1,5 @@
1 #include "git-compat-util.h"
2 #include "noop.h"
3 -#include "../commit.h"
3 #include "../fetch-negotiator.h"
4
5 static void known_common(struct fetch_negotiator *n UNUSED,
notes.c
-2
@@ -5,8 +5,6 @@
5 #include "notes.h"
6 #include "object-name.h"
7 #include "object-store-ll.h"
8 -#include "blob.h"
9 -#include "tree.h"
8 #include "utf8.h"
9 #include "strbuf.h"
10 #include "tree-walk.h"
object-file.c
-8
@@ -15,24 +15,16 @@
15 #include "hex.h"
16 #include "string-list.h"
17 #include "lockfile.h"
18 -#include "delta.h"
18 #include "pack.h"
20 -#include "blob.h"
19 #include "commit.h"
20 #include "run-command.h"
23 -#include "tag.h"
24 -#include "tree.h"
25 -#include "tree-walk.h"
21 #include "refs.h"
27 -#include "pack-revindex.h"
28 -#include "hash-lookup.h"
22 #include "bulk-checkin.h"
23 #include "repository.h"
24 #include "replace-object.h"
25 #include "streaming.h"
26 #include "dir.h"
27 #include "list.h"
35 -#include "mergesort.h"
28 #include "quote.h"
29 #include "packfile.h"
30 #include "object-file.h"
object-name.c
-2
@@ -8,7 +8,6 @@
8 #include "tag.h"
9 #include "commit.h"
10 #include "tree.h"
11 -#include "blob.h"
11 #include "tree-walk.h"
12 #include "refs.h"
13 #include "remote.h"
@@ -21,7 +20,6 @@
20 #include "read-cache-ll.h"
21 #include "repository.h"
22 #include "setup.h"
24 -#include "submodule.h"
23 #include "midx.h"
24 #include "commit-reach.h"
25 #include "date.h"
pack-bitmap-write.c
-3
@@ -4,12 +4,9 @@
4 #include "hex.h"
5 #include "object-store-ll.h"
6 #include "commit.h"
7 -#include "tag.h"
7 #include "diff.h"
8 #include "revision.h"
10 -#include "list-objects.h"
9 #include "progress.h"
12 -#include "pack-revindex.h"
10 #include "pack.h"
11 #include "pack-bitmap.h"
12 #include "hash-lookup.h"
pack-check.c
-1
@@ -3,7 +3,6 @@
3 #include "hex.h"
4 #include "repository.h"
5 #include "pack.h"
6 -#include "pack-revindex.h"
6 #include "progress.h"
7 #include "packfile.h"
8 #include "object-file.h"
pack-write.c
-1
@@ -7,7 +7,6 @@
7 #include "remote.h"
8 #include "chunk-format.h"
9 #include "pack-mtimes.h"
10 -#include "oidmap.h"
10 #include "pack-objects.h"
11 #include "pack-revindex.h"
12 #include "path.h"
packfile.c
-1
@@ -9,7 +9,6 @@
9 #include "mergesort.h"
10 #include "packfile.h"
11 #include "delta.h"
12 -#include "streaming.h"
12 #include "hash-lookup.h"
13 #include "commit.h"
14 #include "object.h"
parse-options.c
-2
@@ -2,8 +2,6 @@
2 #include "parse-options.h"
3 #include "abspath.h"
4 #include "parse.h"
5 -#include "commit.h"
6 -#include "color.h"
5 #include "gettext.h"
6 #include "strbuf.h"
7 #include "string-list.h"
patch-ids.c
-1
@@ -2,7 +2,6 @@
2 #include "diff.h"
3 #include "commit.h"
4 #include "hash.h"
5 -#include "hash-lookup.h"
5 #include "hex.h"
6 #include "patch-ids.h"
7
protocol-caps.c
-1
@@ -3,7 +3,6 @@
3 #include "gettext.h"
4 #include "hex.h"
5 #include "pkt-line.h"
6 -#include "strvec.h"
6 #include "hash-ll.h"
7 #include "hex.h"
8 #include "object.h"
reachable.c
-1
@@ -2,7 +2,6 @@
2 #include "gettext.h"
3 #include "hex.h"
4 #include "refs.h"
5 -#include "tag.h"
5 #include "commit.h"
6 #include "blob.h"
7 #include "diff.h"
read-cache.c
-2
@@ -20,7 +20,6 @@
20 #include "oid-array.h"
21 #include "tree.h"
22 #include "commit.h"
23 -#include "blob.h"
23 #include "environment.h"
24 #include "gettext.h"
25 #include "mem-pool.h"
@@ -31,7 +30,6 @@
30 #include "read-cache.h"
31 #include "resolve-undo.h"
32 #include "revision.h"
34 -#include "run-command.h"
33 #include "strbuf.h"
34 #include "trace2.h"
35 #include "varint.h"
ref-filter.c
-2
@@ -22,12 +22,10 @@
22 #include "ref-filter.h"
23 #include "revision.h"
24 #include "utf8.h"
25 -#include "version.h"
25 #include "versioncmp.h"
26 #include "trailer.h"
27 #include "wt-status.h"
28 #include "commit-slab.h"
30 -#include "commit-graph.h"
29 #include "commit-reach.h"
30 #include "worktree.h"
31 #include "hashmap.h"
reflog.c
-1
@@ -6,7 +6,6 @@
6 #include "revision.h"
7 #include "tree.h"
8 #include "tree-walk.h"
9 -#include "worktree.h"
9
10 /* Remember to update object flag allocation in object.h */
11 #define INCOMPLETE (1u<<10)
refs/files-backend.c
-2
@@ -1,5 +1,4 @@
1 #include "../git-compat-util.h"
2 -#include "../config.h"
2 #include "../copy.h"
3 #include "../environment.h"
4 #include "../gettext.h"
@@ -19,7 +18,6 @@
18 #include "../dir.h"
19 #include "../chdir-notify.h"
20 #include "../setup.h"
22 -#include "../worktree.h"
21 #include "../wrapper.h"
22 #include "../write-or-die.h"
23 #include "../revision.h"
refs/packed-backend.c
-1
@@ -1,5 +1,4 @@
1 #include "../git-compat-util.h"
2 -#include "../alloc.h"
2 #include "../config.h"
3 #include "../gettext.h"
4 #include "../hash.h"
refs/ref-cache.c
-1
@@ -1,5 +1,4 @@
1 #include "../git-compat-util.h"
2 -#include "../alloc.h"
2 #include "../hash.h"
3 #include "../refs.h"
4 #include "../repository.h"
reftable/dump.c
-2
@@ -11,14 +11,12 @@ https://developers.google.com/open-source/licenses/bsd
11
12 #include "reftable-blocksource.h"
13 #include "reftable-error.h"
14 -#include "reftable-merged.h"
14 #include "reftable-record.h"
15 #include "reftable-tests.h"
16 #include "reftable-writer.h"
17 #include "reftable-iterator.h"
18 #include "reftable-reader.h"
19 #include "reftable-stack.h"
21 -#include "reftable-generic.h"
20
21 #include <stddef.h>
22 #include <stdio.h>
reftable/generic.c
-1
@@ -6,7 +6,6 @@ license that can be found in the LICENSE file or at
6 https://developers.google.com/open-source/licenses/bsd
7 */
8
9 -#include "basics.h"
9 #include "constants.h"
10 #include "record.h"
11 #include "generic.h"
reftable/merged.c
-1
@@ -11,7 +11,6 @@ https://developers.google.com/open-source/licenses/bsd
11 #include "constants.h"
12 #include "iter.h"
13 #include "pq.h"
14 -#include "reader.h"
14 #include "record.h"
15 #include "generic.h"
16 #include "reftable-merged.h"
reftable/merged_test.c
-1
@@ -12,7 +12,6 @@ https://developers.google.com/open-source/licenses/bsd
12
13 #include "basics.h"
14 #include "blocksource.h"
15 -#include "constants.h"
15 #include "reader.h"
16 #include "record.h"
17 #include "test_framework.h"
reftable/reader.c
-1
@@ -16,7 +16,6 @@ https://developers.google.com/open-source/licenses/bsd
16 #include "record.h"
17 #include "reftable-error.h"
18 #include "reftable-generic.h"
19 -#include "tree.h"
19
20 uint64_t block_source_size(struct reftable_block_source *source)
21 {
reftable/readwrite_test.c
-1
@@ -11,7 +11,6 @@ https://developers.google.com/open-source/licenses/bsd
11 #include "basics.h"
12 #include "block.h"
13 #include "blocksource.h"
14 -#include "constants.h"
14 #include "reader.h"
15 #include "record.h"
16 #include "test_framework.h"
reftable/refname_test.c
-1
@@ -9,7 +9,6 @@ https://developers.google.com/open-source/licenses/bsd
9 #include "basics.h"
10 #include "block.h"
11 #include "blocksource.h"
12 -#include "constants.h"
12 #include "reader.h"
13 #include "record.h"
14 #include "refname.h"
reftable/stack_test.c
-1
@@ -13,7 +13,6 @@ https://developers.google.com/open-source/licenses/bsd
13 #include "reftable-reader.h"
14 #include "merged.h"
15 #include "basics.h"
16 -#include "constants.h"
16 #include "record.h"
17 #include "test_framework.h"
18 #include "reftable-tests.h"
reftable/test_framework.c
-1
@@ -9,7 +9,6 @@ https://developers.google.com/open-source/licenses/bsd
9 #include "system.h"
10 #include "test_framework.h"
11
12 -#include "basics.h"
12
13 void set_test_hash(uint8_t *p, int i)
14 {
reftable/tree_test.c
-2
@@ -9,8 +9,6 @@ https://developers.google.com/open-source/licenses/bsd
9 #include "system.h"
10 #include "tree.h"
11
12 -#include "basics.h"
13 -#include "record.h"
12 #include "test_framework.h"
13 #include "reftable-tests.h"
14
remote-curl.c
-1
@@ -8,7 +8,6 @@
8 #include "strbuf.h"
9 #include "walker.h"
10 #include "http.h"
11 -#include "exec-cmd.h"
11 #include "run-command.h"
12 #include "pkt-line.h"
13 #include "string-list.h"
remote.c
-1
@@ -15,7 +15,6 @@
15 #include "diff.h"
16 #include "revision.h"
17 #include "dir.h"
18 -#include "tag.h"
18 #include "setup.h"
19 #include "string-list.h"
20 #include "strvec.h"
rerere.c
-2
@@ -12,12 +12,10 @@
12 #include "dir.h"
13 #include "resolve-undo.h"
14 #include "merge-ll.h"
15 -#include "attr.h"
15 #include "path.h"
16 #include "pathspec.h"
17 #include "object-file.h"
18 #include "object-store-ll.h"
20 -#include "hash-lookup.h"
19 #include "strmap.h"
20
21 #define RESOLVED 0
reset.c
-1
@@ -6,7 +6,6 @@
6 #include "object-name.h"
7 #include "refs.h"
8 #include "reset.h"
9 -#include "run-command.h"
9 #include "tree-walk.h"
10 #include "tree.h"
11 #include "unpack-trees.h"
revision.c
-2
@@ -21,12 +21,10 @@
21 #include "reflog-walk.h"
22 #include "patch-ids.h"
23 #include "decorate.h"
24 -#include "log-tree.h"
24 #include "string-list.h"
25 #include "line-log.h"
26 #include "mailmap.h"
27 #include "commit-slab.h"
29 -#include "dir.h"
28 #include "cache-tree.h"
29 #include "bisect.h"
30 #include "packfile.h"
run-command.c
-2
@@ -14,9 +14,7 @@
14 #include "quote.h"
15 #include "config.h"
16 #include "packfile.h"
17 -#include "hook.h"
17 #include "compat/nonblock.h"
19 -#include "alloc.h"
18
19 void child_process_init(struct child_process *child)
20 {
send-pack.c
-2
@@ -4,7 +4,6 @@
4 #include "date.h"
5 #include "gettext.h"
6 #include "hex.h"
7 -#include "refs.h"
7 #include "object-store-ll.h"
8 #include "pkt-line.h"
9 #include "sideband.h"
@@ -12,7 +11,6 @@
11 #include "remote.h"
12 #include "connect.h"
13 #include "send-pack.h"
15 -#include "quote.h"
14 #include "transport.h"
15 #include "version.h"
16 #include "oid-array.h"
sequencer.c
-3
@@ -15,10 +15,8 @@
15 #include "pager.h"
16 #include "commit.h"
17 #include "sequencer.h"
18 -#include "tag.h"
18 #include "run-command.h"
19 #include "hook.h"
21 -#include "exec-cmd.h"
20 #include "utf8.h"
21 #include "cache-tree.h"
22 #include "diff.h"
@@ -39,7 +37,6 @@
37 #include "notes-utils.h"
38 #include "sigchain.h"
39 #include "unpack-trees.h"
42 -#include "worktree.h"
40 #include "oidmap.h"
41 #include "oidset.h"
42 #include "commit-slab.h"
setup.c
-1
@@ -13,7 +13,6 @@
13 #include "string-list.h"
14 #include "chdir-notify.h"
15 #include "path.h"
16 -#include "promisor-remote.h"
16 #include "quote.h"
17 #include "trace2.h"
18 #include "worktree.h"
shallow.c
-1
@@ -7,7 +7,6 @@
7 #include "commit.h"
8 #include "tag.h"
9 #include "pkt-line.h"
10 -#include "remote.h"
10 #include "refs.h"
11 #include "oid-array.h"
12 #include "path.h"
shell.c
-1
@@ -4,7 +4,6 @@
4 #include "strbuf.h"
5 #include "run-command.h"
6 #include "alias.h"
7 -#include "prompt.h"
7
8 #define COMMAND_DIR "git-shell-commands"
9 #define HELP_COMMAND COMMAND_DIR "/help"
submodule.c
-3
@@ -17,10 +17,8 @@
17 #include "string-list.h"
18 #include "oid-array.h"
19 #include "strvec.h"
20 -#include "blob.h"
20 #include "thread-utils.h"
21 #include "path.h"
23 -#include "quote.h"
22 #include "remote.h"
23 #include "worktree.h"
24 #include "parse-options.h"
@@ -30,7 +28,6 @@
28 #include "commit-reach.h"
29 #include "read-cache-ll.h"
30 #include "setup.h"
33 -#include "shallow.h"
31 #include "trace2.h"
32
33 static int config_update_recurse_submodules = RECURSE_SUBMODULES_OFF;
t/helper/test-bundle-uri.c
-2
@@ -5,9 +5,7 @@
5 #include "strbuf.h"
6 #include "string-list.h"
7 #include "transport.h"
8 -#include "ref-filter.h"
8 #include "remote.h"
10 -#include "refs.h"
9
10 enum input_mode {
11 KEY_VALUE_PAIRS,
t/helper/test-reach.c
-2
@@ -1,11 +1,9 @@
1 #include "test-tool.h"
2 #include "commit.h"
3 #include "commit-reach.h"
4 -#include "config.h"
4 #include "gettext.h"
5 #include "hex.h"
6 #include "object-name.h"
8 -#include "parse-options.h"
7 #include "ref-filter.h"
8 #include "setup.h"
9 #include "string-list.h"
t/helper/test-repository.c
-1
@@ -1,7 +1,6 @@
1 #include "test-tool.h"
2 #include "commit-graph.h"
3 #include "commit.h"
4 -#include "config.h"
4 #include "environment.h"
5 #include "hex.h"
6 #include "object-store-ll.h"
t/helper/test-simple-ipc.c
-1
@@ -4,7 +4,6 @@
4
5 #include "test-tool.h"
6 #include "gettext.h"
7 -#include "strbuf.h"
7 #include "simple-ipc.h"
8 #include "parse-options.h"
9 #include "thread-utils.h"
tmp-objdir.c
-1
@@ -6,7 +6,6 @@
6 #include "environment.h"
7 #include "object-file.h"
8 #include "path.h"
9 -#include "sigchain.h"
9 #include "string-list.h"
10 #include "strbuf.h"
11 #include "strvec.h"
trace2.c
-3
@@ -1,12 +1,9 @@
1 #include "git-compat-util.h"
2 #include "config.h"
3 -#include "json-writer.h"
4 -#include "quote.h"
3 #include "repository.h"
4 #include "run-command.h"
5 #include "sigchain.h"
6 #include "thread-utils.h"
9 -#include "version.h"
7 #include "trace.h"
8 #include "trace2.h"
9 #include "trace2/tr2_cfg.h"
transport-helper.c
-2
@@ -3,13 +3,11 @@
3 #include "quote.h"
4 #include "run-command.h"
5 #include "commit.h"
6 -#include "diff.h"
6 #include "environment.h"
7 #include "gettext.h"
8 #include "hex.h"
9 #include "object-name.h"
10 #include "repository.h"
12 -#include "revision.h"
11 #include "remote.h"
12 #include "string-list.h"
13 #include "thread-utils.h"
transport.c
-3
@@ -10,9 +10,7 @@
10 #include "remote.h"
11 #include "connect.h"
12 #include "send-pack.h"
13 -#include "walker.h"
13 #include "bundle.h"
15 -#include "dir.h"
14 #include "gettext.h"
15 #include "refs.h"
16 #include "refspec.h"
@@ -26,7 +24,6 @@
24 #include "transport-internal.h"
25 #include "protocol.h"
26 #include "object-name.h"
29 -#include "object-store-ll.h"
27 #include "color.h"
28 #include "bundle-uri.h"
29
tree.c
-3
@@ -1,12 +1,9 @@
1 #include "git-compat-util.h"
2 -#include "cache-tree.h"
2 #include "hex.h"
3 #include "tree.h"
4 #include "object-name.h"
5 #include "object-store-ll.h"
7 -#include "blob.h"
6 #include "commit.h"
9 -#include "tag.h"
7 #include "alloc.h"
8 #include "tree-walk.h"
9 #include "repository.h"
upload-pack.c
-6
@@ -9,13 +9,10 @@
9 #include "repository.h"
10 #include "object-store-ll.h"
11 #include "oid-array.h"
12 -#include "tag.h"
12 #include "object.h"
13 #include "commit.h"
14 #include "diff.h"
15 #include "revision.h"
17 -#include "list-objects.h"
18 -#include "list-objects-filter.h"
16 #include "list-objects-filter-options.h"
17 #include "run-command.h"
18 #include "connect.h"
@@ -24,11 +21,8 @@
21 #include "string-list.h"
22 #include "strvec.h"
23 #include "trace2.h"
27 -#include "prio-queue.h"
24 #include "protocol.h"
29 -#include "quote.h"
25 #include "upload-pack.h"
31 -#include "serve.h"
26 #include "commit-graph.h"
27 #include "commit-reach.h"
28 #include "shallow.h"
wrapper.c
-1
@@ -5,7 +5,6 @@
5 #include "abspath.h"
6 #include "parse.h"
7 #include "gettext.h"
8 -#include "repository.h"
8 #include "strbuf.h"
9 #include "trace2.h"
10
xdiff-interface.c
-2
@@ -6,8 +6,6 @@
6 #include "xdiff-interface.h"
7 #include "xdiff/xtypes.h"
8 #include "xdiff/xdiffi.h"
9 -#include "xdiff/xemit.h"
10 -#include "xdiff/xmacros.h"
9 #include "xdiff/xutils.h"
10
11 struct xdiff_emit_state {