]> git.ipfire.org Git - thirdparty/git.git/commitdiff
treewide: remove unnecessary includes in source files
authorElijah Newren <newren@gmail.com>
Sat, 23 Dec 2023 17:14:50 +0000 (17:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Dec 2023 20:04:31 +0000 (12:04 -0800)
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>
158 files changed:
add-patch.c
apply.c
archive.c
bisect.c
blob.c
bloom.c
builtin/add.c
builtin/am.c
builtin/apply.c
builtin/bisect.c
builtin/blame.c
builtin/branch.c
builtin/cat-file.c
builtin/checkout-index.c
builtin/checkout.c
builtin/clone.c
builtin/commit-graph.c
builtin/commit-tree.c
builtin/commit.c
builtin/credential-cache.c
builtin/describe.c
builtin/diff-files.c
builtin/diff-index.c
builtin/diff-tree.c
builtin/diff.c
builtin/difftool.c
builtin/fast-export.c
builtin/fetch.c
builtin/for-each-ref.c
builtin/fsck.c
builtin/get-tar-commit-id.c
builtin/grep.c
builtin/hash-object.c
builtin/hook.c
builtin/index-pack.c
builtin/init-db.c
builtin/log.c
builtin/ls-files.c
builtin/ls-remote.c
builtin/ls-tree.c
builtin/mailinfo.c
builtin/merge-base.c
builtin/merge-recursive.c
builtin/merge-tree.c
builtin/merge.c
builtin/mv.c
builtin/notes.c
builtin/pack-objects.c
builtin/pull.c
builtin/push.c
builtin/range-diff.c
builtin/read-tree.c
builtin/rebase.c
builtin/receive-pack.c
builtin/repack.c
builtin/rerere.c
builtin/reset.c
builtin/rev-list.c
builtin/revert.c
builtin/rm.c
builtin/send-pack.c
builtin/show-ref.c
builtin/sparse-checkout.c
builtin/stash.c
builtin/submodule--helper.c
builtin/tag.c
builtin/unpack-objects.c
builtin/update-ref.c
builtin/verify-commit.c
builtin/verify-tag.c
bulk-checkin.c
bundle-uri.c
cache-tree.c
combine-diff.c
commit-graph.c
commit-reach.c
commit.c
config.c
delta-islands.c
diff-lib.c
diff-no-index.c
diff.c
diffcore-break.c
diffcore-delta.c
dir.c
entry.c
exec-cmd.c
fetch-pack.c
fsck.c
gettext.c
gpg-interface.c
grep.c
http-fetch.c
http-push.c
http-walker.c
http.c
imap-send.c
line-log.c
line-range.c
list-objects-filter-options.c
list-objects-filter.c
ls-refs.c
merge-blobs.c
merge-ort.c
merge-recursive.c
merge.c
negotiator/noop.c
notes.c
object-file.c
object-name.c
pack-bitmap-write.c
pack-check.c
pack-write.c
packfile.c
parse-options.c
patch-ids.c
protocol-caps.c
reachable.c
read-cache.c
ref-filter.c
reflog.c
refs/files-backend.c
refs/packed-backend.c
refs/ref-cache.c
reftable/dump.c
reftable/generic.c
reftable/merged.c
reftable/merged_test.c
reftable/reader.c
reftable/readwrite_test.c
reftable/refname_test.c
reftable/stack_test.c
reftable/test_framework.c
reftable/tree_test.c
remote-curl.c
remote.c
rerere.c
reset.c
revision.c
run-command.c
send-pack.c
sequencer.c
setup.c
shallow.c
shell.c
submodule.c
t/helper/test-bundle-uri.c
t/helper/test-reach.c
t/helper/test-repository.c
t/helper/test-simple-ipc.c
tmp-objdir.c
trace2.c
transport-helper.c
transport.c
tree.c
upload-pack.c
wrapper.c
xdiff-interface.c

index bfe19876cd50c5aca2e465d9334c49e65a1972fc..79eda168ebb7cdb739720c2c0d16a44484522822 100644 (file)
@@ -12,7 +12,6 @@
 #include "strvec.h"
 #include "pathspec.h"
 #include "color.h"
-#include "diff.h"
 #include "compat/terminal.h"
 #include "prompt.h"
 
diff --git a/apply.c b/apply.c
index 3d69fec836d41fbae10988606ac20ce96dad562d..7608e3301ca0727dcfec0a579ed46390afa41ab0 100644 (file)
--- a/apply.c
+++ b/apply.c
@@ -12,7 +12,6 @@
 #include "base85.h"
 #include "config.h"
 #include "object-store-ll.h"
-#include "blob.h"
 #include "delta.h"
 #include "diff.h"
 #include "dir.h"
index ca11db185b15a73dd31b239d91a609071faa9a2a..4562a69a0cc94cd3d6b2d2b50e3f0803205419df 100644 (file)
--- a/archive.c
+++ b/archive.c
@@ -17,7 +17,6 @@
 #include "archive.h"
 #include "parse-options.h"
 #include "unpack-trees.h"
-#include "dir.h"
 #include "quote.h"
 
 static char const * const archive_usage[] = {
index 1be8e0a2711df9d29c1ba903fd4e8901379ea406..8487f8cd1bd740df2bd9f5af342f9373debf84da 100644 (file)
--- a/bisect.c
+++ b/bisect.c
@@ -9,7 +9,6 @@
 #include "refs.h"
 #include "list-objects.h"
 #include "quote.h"
-#include "hash-lookup.h"
 #include "run-command.h"
 #include "log-tree.h"
 #include "bisect.h"
diff --git a/blob.c b/blob.c
index 888e28a5594747bd263df0bb8f2179122bccb131..3fb2922b1ae65a552101d625a806e914b99eb339 100644 (file)
--- a/blob.c
+++ b/blob.c
@@ -1,6 +1,5 @@
 #include "git-compat-util.h"
 #include "blob.h"
-#include "repository.h"
 #include "alloc.h"
 
 const char *blob_type = "blob";
diff --git a/bloom.c b/bloom.c
index 1474aa19fa524ff1695c2b518259f61b1c2023b7..e529f7605ca14d3fcb779412fc22e1e20d45ac20 100644 (file)
--- a/bloom.c
+++ b/bloom.c
@@ -2,7 +2,6 @@
 #include "bloom.h"
 #include "diff.h"
 #include "diffcore.h"
-#include "revision.h"
 #include "hashmap.h"
 #include "commit-graph.h"
 #include "commit.h"
index 5126d2ede3d7614f764c0cb7cab4b694a792074e..2151c45fbf097253af1b56d34622f69f06921456 100644 (file)
 #include "dir.h"
 #include "gettext.h"
 #include "pathspec.h"
-#include "exec-cmd.h"
-#include "cache-tree.h"
 #include "run-command.h"
 #include "parse-options.h"
 #include "path.h"
 #include "preload-index.h"
 #include "diff.h"
-#include "diffcore.h"
 #include "read-cache.h"
 #include "repository.h"
 #include "revision.h"
index 9f084d58bc705c74d6986541fe81161dcd37df8c..d1990d7edcbe37467c59a420a9b03a5894e6da93 100644 (file)
@@ -10,7 +10,6 @@
 #include "config.h"
 #include "editor.h"
 #include "environment.h"
-#include "exec-cmd.h"
 #include "gettext.h"
 #include "hex.h"
 #include "parse-options.h"
@@ -24,7 +23,6 @@
 #include "refs.h"
 #include "commit.h"
 #include "diff.h"
-#include "diffcore.h"
 #include "unpack-trees.h"
 #include "branch.h"
 #include "object-name.h"
 #include "log-tree.h"
 #include "notes-utils.h"
 #include "rerere.h"
-#include "prompt.h"
 #include "mailinfo.h"
 #include "apply.h"
 #include "string-list.h"
-#include "packfile.h"
 #include "pager.h"
 #include "path.h"
 #include "repository.h"
index c18b7ea5d3da4aa66d82c9fa0e911274308ad598..861a01910ca20bcb9bd18279ebd10f9d94032fe1 100644 (file)
@@ -1,6 +1,5 @@
 #include "builtin.h"
 #include "gettext.h"
-#include "parse-options.h"
 #include "repository.h"
 #include "apply.h"
 
index 35938b05fd1c0b51e64a01e58294f267afc4d758..7d5faedfabf5a3e6e9a8e5bec6ee13557d4f0c2c 100644 (file)
@@ -7,7 +7,6 @@
 #include "parse-options.h"
 #include "bisect.h"
 #include "refs.h"
-#include "dir.h"
 #include "strvec.h"
 #include "run-command.h"
 #include "oid-array.h"
index 9c987d656756e8f436e3b1cb818306097e402e4c..e9ea190baf6b926b5291650d1f7ea2ff5d3d19d3 100644 (file)
@@ -25,7 +25,6 @@
 #include "userdiff.h"
 #include "line-range.h"
 #include "line-log.h"
-#include "dir.h"
 #include "progress.h"
 #include "object-name.h"
 #include "object-store-ll.h"
index e7ee9bd0f15028532087132cdc6062e8632568c2..6e30d5eac53d66199425f360801d5a90780050c8 100644 (file)
 #include "remote.h"
 #include "parse-options.h"
 #include "branch.h"
-#include "diff.h"
 #include "path.h"
-#include "revision.h"
 #include "string-list.h"
 #include "column.h"
 #include "utf8.h"
-#include "wt-status.h"
 #include "ref-filter.h"
 #include "worktree.h"
 #include "help.h"
index ea8ad601ecc0b7ee2d7eb9c3da2bb70bcfc55cf8..7d4899348a387b1a07377c2d968d7574a74d219d 100644 (file)
@@ -15,7 +15,6 @@
 #include "parse-options.h"
 #include "userdiff.h"
 #include "streaming.h"
-#include "tree-walk.h"
 #include "oid-array.h"
 #include "packfile.h"
 #include "object-file.h"
index 3b68b47615302473cf3e2c5c70f9ebf1c707c3af..2e086a204dc7b19271cdeb2733c62a64066ab304 100644 (file)
@@ -7,7 +7,6 @@
 #define USE_THE_INDEX_VARIABLE
 #include "builtin.h"
 #include "config.h"
-#include "dir.h"
 #include "gettext.h"
 #include "lockfile.h"
 #include "quote.h"
index f02434bc155ba1769a248350afa686322e6110bb..12a46da89a8e3cec5642ee1ef67dd79d31a0206a 100644 (file)
@@ -1,7 +1,6 @@
 #define USE_THE_INDEX_VARIABLE
 #include "builtin.h"
 #include "advice.h"
-#include "blob.h"
 #include "branch.h"
 #include "cache-tree.h"
 #include "checkout.h"
 #include "remote.h"
 #include "resolve-undo.h"
 #include "revision.h"
-#include "run-command.h"
 #include "setup.h"
 #include "submodule.h"
-#include "submodule-config.h"
 #include "symlinks.h"
 #include "trace2.h"
 #include "tree.h"
index c6357af949895a688639c83984598931906b2690..8e9c055533ba9790b5349dec52eb2ab64e61a9ee 100644 (file)
@@ -19,7 +19,6 @@
 #include "hex.h"
 #include "lockfile.h"
 #include "parse-options.h"
-#include "fetch-pack.h"
 #include "refs.h"
 #include "refspec.h"
 #include "object-file.h"
index 45d035af6007a2a64833015dbe58300493a55f80..c5684342ecf12b22b9df47d56e1713add14dba2f 100644 (file)
@@ -1,7 +1,6 @@
 #include "builtin.h"
 #include "commit.h"
 #include "config.h"
-#include "dir.h"
 #include "environment.h"
 #include "gettext.h"
 #include "hex.h"
index 02625e71761dbf8d25f063b5ff4835e5eb4bf477..1bb78198392e9e13db117e87a4d421e17d10b26a 100644 (file)
@@ -11,9 +11,6 @@
 #include "object-store-ll.h"
 #include "repository.h"
 #include "commit.h"
-#include "tree.h"
-#include "utf8.h"
-#include "gpg-interface.h"
 #include "parse-options.h"
 
 static const char * const commit_tree_usage[] = {
index 781af2e206c1060213f16dd7cacb5ca68884f6b8..ca2d18532addff8eadfd885951d8726e24820b8a 100644 (file)
 #include "editor.h"
 #include "environment.h"
 #include "diff.h"
-#include "diffcore.h"
 #include "commit.h"
 #include "gettext.h"
 #include "revision.h"
 #include "wt-status.h"
 #include "run-command.h"
-#include "hook.h"
-#include "refs.h"
-#include "log-tree.h"
 #include "strbuf.h"
-#include "utf8.h"
 #include "object-name.h"
 #include "parse-options.h"
 #include "path.h"
@@ -35,9 +30,6 @@
 #include "string-list.h"
 #include "rerere.h"
 #include "unpack-trees.h"
-#include "quote.h"
-#include "submodule.h"
-#include "gpg-interface.h"
 #include "column.h"
 #include "sequencer.h"
 #include "sparse-index.h"
index 43b9d0e5b16ba5da555a3b16ce53b88dff5dbb4c..bba96d4ffd6f198adb186aaba0c853e34a93dd11 100644 (file)
@@ -7,8 +7,6 @@
 
 #ifndef NO_UNIX_SOCKETS
 
-#include "credential.h"
-#include "string-list.h"
 #include "unix-socket.h"
 #include "run-command.h"
 
index fb6b0508f3212db5d41bc33cfe76de441534ca7c..d6c77a714f46194faca18739d0118294bc233f81 100644 (file)
@@ -7,9 +7,7 @@
 #include "lockfile.h"
 #include "commit.h"
 #include "tag.h"
-#include "blob.h"
 #include "refs.h"
-#include "exec-cmd.h"
 #include "object-name.h"
 #include "parse-options.h"
 #include "read-cache-ll.h"
index f38912cd407bf4e5098d84a928affd849f4123d8..018011f29ea26be24b567e9af380699dd7d893a3 100644 (file)
@@ -11,7 +11,6 @@
 #include "preload-index.h"
 #include "repository.h"
 #include "revision.h"
-#include "submodule.h"
 
 static const char diff_files_usage[] =
 "git diff-files [-q] [-0 | -1 | -2 | -3 | -c | --cc] [<common-diff-options>] [<path>...]"
index 220f341ffa2a138f70d6aa0d343594e6e60d2ebb..3e05260ac0e0401188163aeaf4c4d1aea0ba56d1 100644 (file)
@@ -7,8 +7,6 @@
 #include "repository.h"
 #include "revision.h"
 #include "setup.h"
-#include "sparse-index.h"
-#include "submodule.h"
 
 static const char diff_cache_usage[] =
 "git diff-index [-m] [--cached] [--merge-base] "
index 86be6342861be40da9edbf2f1a2002fa4abc0cda..a8e68ce8ef6275a99e2a4f62545d0e7d962dcf45 100644 (file)
@@ -6,7 +6,6 @@
 #include "gettext.h"
 #include "hex.h"
 #include "log-tree.h"
-#include "submodule.h"
 #include "read-cache-ll.h"
 #include "repository.h"
 #include "revision.h"
index 55e7d21755a09c9754d45fea8689cbcbd32939dd..6e196e0c7d2d055df1557ffd256d87a737053324 100644 (file)
@@ -10,7 +10,6 @@
 #include "lockfile.h"
 #include "color.h"
 #include "commit.h"
-#include "blob.h"
 #include "gettext.h"
 #include "tag.h"
 #include "diff.h"
@@ -21,7 +20,6 @@
 #include "revision.h"
 #include "log-tree.h"
 #include "setup.h"
-#include "submodule.h"
 #include "oid-array.h"
 #include "tree.h"
 
index 0f5eae9cd41b3219b06964011089bb8d389975b4..a3c72b8258e7cb34e6e87e679e6a996d6086ecb0 100644 (file)
@@ -18,7 +18,6 @@
 #include "copy.h"
 #include "run-command.h"
 #include "environment.h"
-#include "exec-cmd.h"
 #include "gettext.h"
 #include "hex.h"
 #include "parse-options.h"
index 70aff515acbe97b20db80cc8b746e28f0149b56f..f18f0809f9c7f78874eaddfd869c5fc5d11831e0 100644 (file)
@@ -25,7 +25,6 @@
 #include "quote.h"
 #include "remote.h"
 #include "blob.h"
-#include "commit-slab.h"
 
 static const char *fast_export_usage[] = {
        N_("git fast-export [<rev-list-opts>]"),
index fd134ba74d9086cfa44ba1c1b5a5a2597d182bee..72d735589a32f40861b1fb566f9b25a35e095cad 100644 (file)
@@ -26,7 +26,6 @@
 #include "connected.h"
 #include "strvec.h"
 #include "utf8.h"
-#include "packfile.h"
 #include "pager.h"
 #include "path.h"
 #include "pkt-line.h"
@@ -38,7 +37,6 @@
 #include "shallow.h"
 #include "trace.h"
 #include "trace2.h"
-#include "worktree.h"
 #include "bundle-uri.h"
 
 #define FORCED_UPDATES_DELAY_WARNING_IN_MS (10 * 1000)
index 350bfa6e811b8c53d94ba33083a03bf9d93437dc..6235d72f9d3b74d98f4d42c41c54de6a907bba9b 100644 (file)
@@ -1,13 +1,11 @@
 #include "builtin.h"
 #include "config.h"
 #include "gettext.h"
-#include "refs.h"
 #include "object.h"
 #include "parse-options.h"
 #include "ref-filter.h"
 #include "strbuf.h"
 #include "strvec.h"
-#include "commit-reach.h"
 
 static char const * const for_each_ref_usage[] = {
        N_("git for-each-ref [<options>] [<pattern>]"),
index 611925905e4fd1d972565806156059016d2eb1a6..9317b7b841d1f7219aabdac18557a8273e12a4c7 100644 (file)
 #include "tree-walk.h"
 #include "fsck.h"
 #include "parse-options.h"
-#include "dir.h"
 #include "progress.h"
 #include "streaming.h"
-#include "decorate.h"
 #include "packfile.h"
 #include "object-file.h"
 #include "object-name.h"
index 20d0dfe9cf1dfefe6ffacb23bd500701cca71a09..66a7389f9f4a21df975ef12a00d93fd7d8eee46f 100644 (file)
@@ -4,7 +4,6 @@
 #include "builtin.h"
 #include "commit.h"
 #include "tar.h"
-#include "quote.h"
 
 static const char builtin_get_tar_commit_id_usage[] =
 "git get-tar-commit-id";
index fe78d4c98b13b578a09de344d6a56d2316a8cb00..f076cc705b404bcb73e3abd64265a8848a47a361 100644 (file)
@@ -9,9 +9,6 @@
 #include "hex.h"
 #include "repository.h"
 #include "config.h"
-#include "blob.h"
-#include "tree.h"
-#include "commit.h"
 #include "tag.h"
 #include "tree-walk.h"
 #include "parse-options.h"
index 5ffec99dceaf5c95d9b57c1f0c6c90358b80507d..82ca6d2bfdc7797a13646ff01271ceb803b0a973 100644 (file)
@@ -14,7 +14,6 @@
 #include "blob.h"
 #include "quote.h"
 #include "parse-options.h"
-#include "exec-cmd.h"
 #include "setup.h"
 #include "strbuf.h"
 #include "write-or-die.h"
index 09b51a6487c3928bc099567109193c32fe82fe30..5234693a94b40e2a6dd7aa4a8d724f0ac7b06a3b 100644 (file)
@@ -3,7 +3,6 @@
 #include "gettext.h"
 #include "hook.h"
 #include "parse-options.h"
-#include "strbuf.h"
 #include "strvec.h"
 
 #define BUILTIN_HOOK_RUN_USAGE \
index dda94a9f46d9a9401c298ee304f57e55db25f217..0841b6940a3ddf5c71beba29d092881b3fd8b044 100644 (file)
@@ -8,11 +8,9 @@
 #include "csum-file.h"
 #include "blob.h"
 #include "commit.h"
-#include "tag.h"
 #include "tree.h"
 #include "progress.h"
 #include "fsck.h"
-#include "exec-cmd.h"
 #include "strbuf.h"
 #include "streaming.h"
 #include "thread-utils.h"
index cb727c826f5653ab2827ccfbd575e6d305fad75a..b89814a6f87da30fc1721ecef02637f61600cd32 100644 (file)
@@ -5,7 +5,6 @@
  */
 #include "builtin.h"
 #include "abspath.h"
-#include "config.h"
 #include "environment.h"
 #include "gettext.h"
 #include "object-file.h"
index ba775d7b5cf886374bd94c9f2e54d5695a3dbaff..cec7ce46f1c36e02163a630483514d8b30ee1029 100644 (file)
@@ -26,7 +26,6 @@
 #include "tag.h"
 #include "reflog-walk.h"
 #include "patch-ids.h"
-#include "run-command.h"
 #include "shortlog.h"
 #include "remote.h"
 #include "string-list.h"
@@ -36,7 +35,6 @@
 #include "streaming.h"
 #include "version.h"
 #include "mailmap.h"
-#include "gpg-interface.h"
 #include "progress.h"
 #include "commit-slab.h"
 #include "repository.h"
index a0229c3277874accc9edf0a4a5ac4e8186217903..92f94e65bf065e900e59b9fcf2bc18f5af045975 100644 (file)
 #include "gettext.h"
 #include "object-name.h"
 #include "strbuf.h"
-#include "tree.h"
-#include "cache-tree.h"
 #include "parse-options.h"
 #include "resolve-undo.h"
 #include "string-list.h"
 #include "path.h"
 #include "pathspec.h"
 #include "read-cache.h"
-#include "run-command.h"
 #include "setup.h"
 #include "sparse-index.h"
 #include "submodule.h"
-#include "submodule-config.h"
 #include "object-store.h"
 #include "hex.h"
 
index fc765754305ed7a3f8a2efdcd604dd29c8b3b502..2975ea4082f8830fd94f0493841ed4ca3bff906d 100644 (file)
@@ -5,7 +5,6 @@
 #include "pkt-line.h"
 #include "ref-filter.h"
 #include "remote.h"
-#include "refs.h"
 #include "parse-options.h"
 #include "wildmatch.h"
 
index 209d2dc0d59af3d0c8860ef4eb397edb34e8b429..e4a891337c3c619112af77bac014139b520e463f 100644 (file)
@@ -9,9 +9,7 @@
 #include "hex.h"
 #include "object-name.h"
 #include "object-store-ll.h"
-#include "blob.h"
 #include "tree.h"
-#include "commit.h"
 #include "path.h"
 #include "quote.h"
 #include "parse-options.h"
index 53b55dd71c0537b149860c4b9c0d505ea305fe57..53a22645da58b8c18bb825ca9012e2f072cbf3a3 100644 (file)
@@ -6,7 +6,6 @@
 #include "abspath.h"
 #include "environment.h"
 #include "gettext.h"
-#include "utf8.h"
 #include "strbuf.h"
 #include "mailinfo.h"
 #include "parse-options.h"
index e68b7fe45d77a9b032dd6031864b876eeeca5e5c..d26e8fbf6f75d9971762afdc0ea5c04e209db387 100644 (file)
@@ -3,9 +3,6 @@
 #include "commit.h"
 #include "gettext.h"
 #include "hex.h"
-#include "refs.h"
-#include "diff.h"
-#include "revision.h"
 #include "object-name.h"
 #include "parse-options.h"
 #include "repository.h"
index 3366699657c9c390f850dfcba11be08327834f50..c2ce044a201366d7eea11ab3d2eeed2c15113af4 100644 (file)
@@ -1,13 +1,10 @@
 #include "builtin.h"
 #include "advice.h"
-#include "commit.h"
 #include "gettext.h"
 #include "hash.h"
-#include "tag.h"
 #include "merge-recursive.h"
 #include "object-name.h"
 #include "repository.h"
-#include "xdiff-interface.h"
 
 static const char builtin_merge_recursive_usage[] =
        "git %s <base>... -- <head> <remote> ...";
index a35e0452d6672594da29623e8934256f37784549..f3c46691010afacce1f3cf7e5699dc80e32e78d1 100644 (file)
@@ -13,7 +13,6 @@
 #include "parse-options.h"
 #include "repository.h"
 #include "blob.h"
-#include "exec-cmd.h"
 #include "merge-blobs.h"
 #include "quote.h"
 #include "tree.h"
index d748d46e13517afd6908b1f7297bf448557b1a86..5b7885466372fb23de980463b7e82903c2799cb6 100644 (file)
@@ -31,8 +31,6 @@
 #include "unpack-trees.h"
 #include "cache-tree.h"
 #include "dir.h"
-#include "utf8.h"
-#include "log-tree.h"
 #include "color.h"
 #include "rerere.h"
 #include "help.h"
 #include "resolve-undo.h"
 #include "remote.h"
 #include "fmt-merge-msg.h"
-#include "gpg-interface.h"
 #include "sequencer.h"
 #include "string-list.h"
-#include "packfile.h"
 #include "tag.h"
 #include "alias.h"
 #include "branch.h"
index c596515ad0536f4b13ce2fdc2a797f6aaa9df70a..22e64fc2900ec8e654aafa6cfaf8a10cdb5d58a7 100644 (file)
@@ -15,7 +15,6 @@
 #include "pathspec.h"
 #include "lockfile.h"
 #include "dir.h"
-#include "cache-tree.h"
 #include "string-list.h"
 #include "parse-options.h"
 #include "read-cache-ll.h"
index 9f38863dd507ff680cf8a006b81a413d75550b1b..e65cae0bcf702bf939dcd3ddfb2af5793e73fda0 100644 (file)
@@ -9,7 +9,6 @@
 
 #include "builtin.h"
 #include "config.h"
-#include "alloc.h"
 #include "editor.h"
 #include "environment.h"
 #include "gettext.h"
@@ -19,7 +18,6 @@
 #include "object-store-ll.h"
 #include "path.h"
 #include "repository.h"
-#include "blob.h"
 #include "pretty.h"
 #include "refs.h"
 #include "exec-cmd.h"
index 89a8b5a9768e42da3edaaddb63a663936ef70576..ab1c9de9815de034e9aee6b4b31d721f32dc27c0 100644 (file)
@@ -6,10 +6,8 @@
 #include "config.h"
 #include "attr.h"
 #include "object.h"
-#include "blob.h"
 #include "commit.h"
 #include "tag.h"
-#include "tree.h"
 #include "delta.h"
 #include "pack.h"
 #include "pack-revindex.h"
@@ -18,7 +16,6 @@
 #include "diff.h"
 #include "revision.h"
 #include "list-objects.h"
-#include "list-objects-filter.h"
 #include "list-objects-filter-options.h"
 #include "pack-objects.h"
 #include "progress.h"
index be2b2c9ebc97b2a1620b93e1766e0ccfa6c7843a..73a68b75b0672487013299f992d382d1957a02a4 100644 (file)
@@ -14,7 +14,6 @@
 #include "merge.h"
 #include "object-name.h"
 #include "parse-options.h"
-#include "exec-cmd.h"
 #include "run-command.h"
 #include "oid-array.h"
 #include "remote.h"
 #include "rebase.h"
 #include "refs.h"
 #include "refspec.h"
-#include "revision.h"
 #include "submodule.h"
 #include "submodule-config.h"
-#include "tempfile.h"
-#include "lockfile.h"
 #include "wt-status.h"
 #include "commit-reach.h"
 #include "sequencer.h"
-#include "packfile.h"
 
 /**
  * Parses the value of --rebase. If value is a false value, returns
index 2e708383c24ba86e07fc14b0139afb28d489c014..23e841d5b546f4555be7d4d02a297d101ec07c9b 100644 (file)
@@ -7,7 +7,6 @@
 #include "config.h"
 #include "environment.h"
 #include "gettext.h"
-#include "refs.h"
 #include "refspec.h"
 #include "run-command.h"
 #include "remote.h"
index e455a4795cc8101576a806ee68df71a56c7661ce..f02cbac087db403cedae2e4b5269e5258059677f 100644 (file)
@@ -5,7 +5,6 @@
 #include "range-diff.h"
 #include "config.h"
 #include "repository.h"
-#include "revision.h"
 
 static const char * const builtin_range_diff_usage[] = {
 N_("git range-diff [<options>] <old-base>..<old-tip> <new-base>..<new-tip>"),
index 8196ca9dd85828890cf5e7088d19e51990a00c66..20e7db19737d5a5070068a131797042d37a936a5 100644 (file)
 #include "tree-walk.h"
 #include "cache-tree.h"
 #include "unpack-trees.h"
-#include "dir.h"
 #include "parse-options.h"
 #include "repository.h"
 #include "resolve-undo.h"
 #include "setup.h"
 #include "sparse-index.h"
 #include "submodule.h"
-#include "submodule-config.h"
 
 static int nr_trees;
 static int read_empty;
index 043c65dccd9f19667a1eb6af993dfb9c1f4d8669..d338b4053dac92bd98fc31411eccc901ae735653 100644 (file)
 #include "gettext.h"
 #include "hex.h"
 #include "run-command.h"
-#include "exec-cmd.h"
 #include "strvec.h"
 #include "dir.h"
-#include "packfile.h"
 #include "refs.h"
-#include "quote.h"
 #include "config.h"
-#include "cache-tree.h"
 #include "unpack-trees.h"
 #include "lockfile.h"
 #include "object-file.h"
index 8c4f0cb90a936b2b24b8b7b9e8b1b789c33bff51..401d93b675f2755b2f5dab5030027399fc3cbec4 100644 (file)
@@ -22,7 +22,6 @@
 #include "connected.h"
 #include "strvec.h"
 #include "version.h"
-#include "tag.h"
 #include "gpg-interface.h"
 #include "sigchain.h"
 #include "fsck.h"
index edaee4dbec7b01624b5d272a7c402c49f46dba5d..fc10570d06bf4155fe2cf18f0013c323adfdbc44 100644 (file)
@@ -8,7 +8,6 @@
 #include "path.h"
 #include "run-command.h"
 #include "server-info.h"
-#include "sigchain.h"
 #include "strbuf.h"
 #include "string-list.h"
 #include "strvec.h"
index 07a9d37275cbbc52cc8cddbae4a6143df2e49a82..b2efc6f640e18a2f956cdc985ecc2c793120a267 100644 (file)
@@ -1,6 +1,5 @@
 #include "builtin.h"
 #include "config.h"
-#include "dir.h"
 #include "gettext.h"
 #include "parse-options.h"
 #include "repository.h"
index 4b018d20e3b2200e44a04f1f759837a571e4bc4f..8390bfe4c487b0c3170045f0601234c1e8278122 100644 (file)
 #include "hash.h"
 #include "hex.h"
 #include "lockfile.h"
-#include "tag.h"
 #include "object.h"
 #include "pretty.h"
-#include "run-command.h"
 #include "refs.h"
 #include "diff.h"
 #include "diffcore.h"
@@ -33,7 +31,6 @@
 #include "setup.h"
 #include "sparse-index.h"
 #include "submodule.h"
-#include "submodule-config.h"
 #include "trace.h"
 #include "trace2.h"
 #include "dir.h"
index 181353dcf51ba8af7620b8926084a1cbea3163b2..460ba7cbaa7ead0fa88453cc5d6e4bc0e4a8f768 100644 (file)
@@ -7,7 +7,6 @@
 #include "hex.h"
 #include "revision.h"
 #include "list-objects.h"
-#include "list-objects-filter.h"
 #include "list-objects-filter-options.h"
 #include "object.h"
 #include "object-name.h"
index e6f9a1ad26721c450258849cb8e415156052e442..89821bab95745a5fca294d00811804799ecd323d 100644 (file)
@@ -1,5 +1,4 @@
 #include "git-compat-util.h"
-#include "config.h"
 #include "builtin.h"
 #include "parse-options.h"
 #include "diff.h"
@@ -7,7 +6,6 @@
 #include "repository.h"
 #include "revision.h"
 #include "rerere.h"
-#include "dir.h"
 #include "sequencer.h"
 #include "branch.h"
 
index dff819ae5098ff2ee0c72bae00b35da39bf4979d..fd130cea2d2592829e3abd991ca6caae4a119897 100644 (file)
@@ -9,7 +9,6 @@
 #include "config.h"
 #include "lockfile.h"
 #include "dir.h"
-#include "cache-tree.h"
 #include "gettext.h"
 #include "hash.h"
 #include "tree-walk.h"
index cd6d9e41129a21d7f9c21cebae0a322812ebcbcd..395f2e490d4ab8603f6c10a3527abdc3ba973619 100644 (file)
@@ -1,8 +1,6 @@
 #include "builtin.h"
 #include "config.h"
-#include "commit.h"
 #include "hex.h"
-#include "refs.h"
 #include "pkt-line.h"
 #include "sideband.h"
 #include "run-command.h"
@@ -11,9 +9,7 @@
 #include "send-pack.h"
 #include "quote.h"
 #include "transport.h"
-#include "version.h"
 #include "oid-array.h"
-#include "gpg-interface.h"
 #include "gettext.h"
 #include "protocol.h"
 #include "parse-options.h"
index 7aac525a878b3b3ae4959a831de4747d379e140f..f102f6f613105c3c1fb875caa1ea9555ca0e0afb 100644 (file)
@@ -6,7 +6,6 @@
 #include "object-name.h"
 #include "object-store-ll.h"
 #include "object.h"
-#include "tag.h"
 #include "string-list.h"
 #include "parse-options.h"
 
index 5c8ffb1f7598b056fadcdd8fb98182d34928e6f3..80227f3df173c06f24dad6f578b2a0670fdb2604 100644 (file)
@@ -8,14 +8,10 @@
 #include "parse-options.h"
 #include "pathspec.h"
 #include "repository.h"
-#include "run-command.h"
 #include "strbuf.h"
 #include "string-list.h"
-#include "cache-tree.h"
 #include "lockfile.h"
-#include "resolve-undo.h"
 #include "unpack-trees.h"
-#include "wt-status.h"
 #include "quote.h"
 #include "setup.h"
 #include "sparse-index.h"
index 4a6771c9f4c493a5dd41df2bf285f40784fa8cff..b2813c614cb2cf084ab28b48c1099209865e36b7 100644 (file)
@@ -26,7 +26,6 @@
 #include "sparse-index.h"
 #include "log-tree.h"
 #include "diffcore.h"
-#include "exec-cmd.h"
 #include "reflog.h"
 #include "add-interactive.h"
 
index cce46450abe95ea6a24d28026a1686cb930cb75a..fda50f2af1e33277161f819f560b4d8164d284a0 100644 (file)
@@ -22,7 +22,6 @@
 #include "remote.h"
 #include "refs.h"
 #include "refspec.h"
-#include "connect.h"
 #include "revision.h"
 #include "diffcore.h"
 #include "diff.h"
index 3918eacbb57bd9e0d2b90ecbbf6cc07c16fad73b..358b30861617f7cfc6c1eb2e99c5bb65c4385278 100644 (file)
@@ -18,7 +18,6 @@
 #include "object-store-ll.h"
 #include "path.h"
 #include "tag.h"
-#include "run-command.h"
 #include "parse-options.h"
 #include "diff.h"
 #include "revision.h"
index fef7423448804006a04286ce18adedbaaf950229..e0a701f2b383bbbd95fc1e7fef3fec30c3783c37 100644 (file)
 #include "delta.h"
 #include "pack.h"
 #include "blob.h"
-#include "commit.h"
 #include "replace-object.h"
 #include "strbuf.h"
-#include "tag.h"
-#include "tree.h"
-#include "tree-walk.h"
 #include "progress.h"
 #include "decorate.h"
 #include "fsck.h"
index c0c4e65e6fb1986fadf2e98f0d19449e95905fe6..61338a01ecfc0ee4f029215149651bb9ac03da1e 100644 (file)
@@ -7,7 +7,6 @@
 #include "parse-options.h"
 #include "quote.h"
 #include "repository.h"
-#include "strvec.h"
 
 static const char * const git_update_ref_usage[] = {
        N_("git update-ref [<options>] -d <refname> [<old-val>]"),
index 9680b5870130615b7b4432a5ce456279db750aa4..0d2b9aea2aedca39b18d15bc7a8719669d63f1d3 100644 (file)
@@ -9,10 +9,8 @@
 #include "config.h"
 #include "gettext.h"
 #include "object-name.h"
-#include "object-store-ll.h"
 #include "repository.h"
 #include "commit.h"
-#include "run-command.h"
 #include "parse-options.h"
 #include "gpg-interface.h"
 
index d8753270ebee4df6eed4b2dd5037f3fee97eb2c6..c731e2f87b4ee35e4910e3a8c11e18b8e68e58c1 100644 (file)
@@ -9,7 +9,6 @@
 #include "config.h"
 #include "gettext.h"
 #include "tag.h"
-#include "run-command.h"
 #include "object-name.h"
 #include "parse-options.h"
 #include "gpg-interface.h"
index 6ce62999e58523e20a686801446daaf0d924e9be..eb46b8863793e25b82ca6df27eb435476c4807a5 100644 (file)
@@ -11,7 +11,6 @@
 #include "csum-file.h"
 #include "pack.h"
 #include "strbuf.h"
-#include "string-list.h"
 #include "tmp-objdir.h"
 #include "packfile.h"
 #include "object-file.h"
index 8492fffd2f759f97e750063c4de0eefdc0763d99..ca32050a78fd7570adea76db264c5600339caf82 100644 (file)
@@ -4,7 +4,6 @@
 #include "copy.h"
 #include "environment.h"
 #include "gettext.h"
-#include "object-store-ll.h"
 #include "refs.h"
 #include "run-command.h"
 #include "hashmap.h"
index 641427ed410af39be80be22460a103dbad2d3d35..64678fe19930402b8400cb05d3ccaad5bb5b00a6 100644 (file)
@@ -11,7 +11,6 @@
 #include "read-cache-ll.h"
 #include "replace-object.h"
 #include "promisor-remote.h"
-#include "sparse-index.h"
 #include "trace.h"
 #include "trace2.h"
 
index f90f442482932e618cc7399924c00ddde8c50eaf..db94581f72443c28fd47535db78e39b5ad021a86 100644 (file)
@@ -2,7 +2,6 @@
 #include "object-store-ll.h"
 #include "commit.h"
 #include "convert.h"
-#include "blob.h"
 #include "diff.h"
 #include "diffcore.h"
 #include "environment.h"
index ee66098e077d89f293b9527c7689865904f4a12f..5bfee53e87b75cac3e8326909476cdc16e9517e6 100644 (file)
@@ -8,7 +8,6 @@
 #include "commit.h"
 #include "object.h"
 #include "refs.h"
-#include "revision.h"
 #include "hash-lookup.h"
 #include "commit-graph.h"
 #include "object-file.h"
index a868a575ea1cf8e7ccd331610b9d309a065ad135..ecc913fc99ba9e6b88df675462a2b8f912cbd0ce 100644 (file)
@@ -4,7 +4,6 @@
 #include "decorate.h"
 #include "hex.h"
 #include "prio-queue.h"
-#include "tree.h"
 #include "ref-filter.h"
 #include "revision.h"
 #include "tag.h"
index 8405d7c3fceab23c6eafd16e36d76c7172c44923..f6342d7deb52a9b834a005f01f4a60c0c18bab5d 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -8,7 +8,6 @@
 #include "repository.h"
 #include "object-name.h"
 #include "object-store-ll.h"
-#include "pkt-line.h"
 #include "utf8.h"
 #include "diff.h"
 #include "revision.h"
@@ -23,7 +22,6 @@
 #include "advice.h"
 #include "refs.h"
 #include "commit-reach.h"
-#include "run-command.h"
 #include "setup.h"
 #include "shallow.h"
 #include "tree.h"
index b330c7adb4a5efc3cac898391d4c722b019d95a1..cdc39cf3693bc78e5fb9183be417610624b44317 100644 (file)
--- a/config.c
+++ b/config.c
 #include "pager.h"
 #include "path.h"
 #include "utf8.h"
-#include "dir.h"
 #include "color.h"
-#include "replace-object.h"
 #include "refs.h"
 #include "setup.h"
 #include "strvec.h"
 #include "trace2.h"
 #include "wildmatch.h"
-#include "worktree.h"
 #include "ws.h"
 #include "write-or-die.h"
 
index 5de5759f3f13da13465ec6c9bfa6abeb44ceaee3..ee2318d45a1c7898b39999b1f5fc81be8ec49f00 100644 (file)
@@ -1,18 +1,13 @@
 #include "git-compat-util.h"
-#include "attr.h"
 #include "object.h"
-#include "blob.h"
 #include "commit.h"
 #include "gettext.h"
 #include "hex.h"
 #include "tag.h"
 #include "tree.h"
-#include "delta.h"
 #include "pack.h"
 #include "tree-walk.h"
 #include "diff.h"
-#include "revision.h"
-#include "list-objects.h"
 #include "progress.h"
 #include "refs.h"
 #include "khash.h"
index 0e9ec4f68afb01f23d9b9a0142d2ffb2cd1cc79b..8fde93d7cac78d9fee3f3326ae4fff2e36a6c009 100644 (file)
@@ -2,7 +2,6 @@
  * Copyright (C) 2005 Junio C Hamano
  */
 #include "git-compat-util.h"
-#include "quote.h"
 #include "commit.h"
 #include "diff.h"
 #include "diffcore.h"
index e7041b89e38887e04237a00f84366781dbabf739..3a8965672c5e90093c08a9fde12981b922ae8a76 100644 (file)
@@ -8,13 +8,10 @@
 #include "abspath.h"
 #include "color.h"
 #include "commit.h"
-#include "blob.h"
-#include "tag.h"
 #include "diff.h"
 #include "diffcore.h"
 #include "gettext.h"
 #include "revision.h"
-#include "log-tree.h"
 #include "parse-options.h"
 #include "string-list.h"
 #include "dir.h"
diff --git a/diff.c b/diff.c
index 2c602df10a372c7e99402ca5a2dc9cf7aa673c09..587341805c2c0abbe75108640c827319efcc69fd 100644 (file)
--- a/diff.c
+++ b/diff.c
 #include "hex.h"
 #include "xdiff-interface.h"
 #include "color.h"
-#include "attr.h"
 #include "run-command.h"
 #include "utf8.h"
 #include "object-store-ll.h"
 #include "userdiff.h"
-#include "submodule-config.h"
 #include "submodule.h"
 #include "hashmap.h"
 #include "mem-pool.h"
index f57ece2757d46ea6dee3af34a476c5fdd9908b0d..49ba38aa7c0a58433380e560f6d84e0cc084a67f 100644 (file)
@@ -2,7 +2,6 @@
  * Copyright (C) 2005 Junio C Hamano
  */
 #include "git-compat-util.h"
-#include "diff.h"
 #include "diffcore.h"
 #include "hash.h"
 #include "object.h"
index c30b56e983bda39e18eda24bb81608ae7a33942c..4927ab8fb0c91554b849e3046e424cccc7eff325 100644 (file)
@@ -1,5 +1,4 @@
 #include "git-compat-util.h"
-#include "diff.h"
 #include "diffcore.h"
 
 /*
diff --git a/dir.c b/dir.c
index 16fdb03f2a51c9505b3cc9da2d9a908f3e4ae119..3e75c126edf3fbe6d18b719f68538c648189fbfb 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -16,7 +16,6 @@
 #include "object-file.h"
 #include "object-store-ll.h"
 #include "path.h"
-#include "attr.h"
 #include "refs.h"
 #include "wildmatch.h"
 #include "pathspec.h"
diff --git a/entry.c b/entry.c
index 076e97eb89ce15e312b6ff08eebd3c1389245997..f918a3a78e8154fb62de1fb2378d100f9c47e9ca 100644 (file)
--- a/entry.c
+++ b/entry.c
@@ -1,5 +1,4 @@
 #include "git-compat-util.h"
-#include "blob.h"
 #include "object-store-ll.h"
 #include "dir.h"
 #include "environment.h"
index 1d597e84ea7f4c3c8296cbf527bf0c5514037e99..909777f61f4fa3d9d8c51c25db96e8d1f30544ae 100644 (file)
@@ -4,7 +4,6 @@
 #include "exec-cmd.h"
 #include "gettext.h"
 #include "path.h"
-#include "quote.h"
 #include "run-command.h"
 #include "strvec.h"
 #include "trace.h"
index 26999e3b6591313a18df430170aaf935d2e24c14..b0373bd87c489a467b6d40a0595a2ccfcc603b41 100644 (file)
@@ -10,7 +10,6 @@
 #include "pkt-line.h"
 #include "commit.h"
 #include "tag.h"
-#include "exec-cmd.h"
 #include "pack.h"
 #include "sideband.h"
 #include "fetch-pack.h"
@@ -18,7 +17,6 @@
 #include "run-command.h"
 #include "connect.h"
 #include "trace2.h"
-#include "transport.h"
 #include "version.h"
 #include "oid-array.h"
 #include "oidset.h"
diff --git a/fsck.c b/fsck.c
index 6a0bbc50877710ff22db33adec48f4a469143c37..9fce4c9628f640fb7d161c5766e9cd7a04a4c300 100644 (file)
--- a/fsck.c
+++ b/fsck.c
@@ -16,7 +16,6 @@
 #include "refs.h"
 #include "url.h"
 #include "utf8.h"
-#include "decorate.h"
 #include "oidset.h"
 #include "packfile.h"
 #include "submodule-config.h"
index f27e94407b4c2848eecfbd827ee85525ff8c04ed..57facbc21ec2545e5bdeb1e738445ad403f419b4 100644 (file)
--- a/gettext.c
+++ b/gettext.c
@@ -7,9 +7,7 @@
 #include "environment.h"
 #include "exec-cmd.h"
 #include "gettext.h"
-#include "strbuf.h"
 #include "utf8.h"
-#include "config.h"
 
 #ifndef NO_GETTEXT
 #      include <libintl.h>
index 48f43c5a21d34569bdc966eefd652da38003d157..636475f598fd51ccc4363f091b889d6cf084e202 100644 (file)
@@ -12,7 +12,6 @@
 #include "sigchain.h"
 #include "tempfile.h"
 #include "alias.h"
-#include "environment.h"
 
 static int git_gpg_config(const char *, const char *,
                          const struct config_context *, void *);
diff --git a/grep.c b/grep.c
index fc2d0c837a378d6a14da32fad69c0f3620447a21..5f23d1a50cabb35732f9515355fe0a85a33d2ff8 100644 (file)
--- a/grep.c
+++ b/grep.c
@@ -9,7 +9,6 @@
 #include "xdiff-interface.h"
 #include "diff.h"
 #include "diffcore.h"
-#include "commit.h"
 #include "quote.h"
 #include "help.h"
 
index fffda592670e667e81eb92af218f9a4d95d7614d..93695a440ad56715d6ac9f468f214940a72fa906 100644 (file)
@@ -1,6 +1,5 @@
 #include "git-compat-util.h"
 #include "config.h"
-#include "exec-cmd.h"
 #include "gettext.h"
 #include "hex.h"
 #include "http.h"
index a704f490fdb2c2144b47a5629ed9ee0643ab0d83..329513270c853d8f1e6d73cda4f5d7787ec64126 100644 (file)
@@ -6,10 +6,8 @@
 #include "tag.h"
 #include "blob.h"
 #include "http.h"
-#include "refs.h"
 #include "diff.h"
 #include "revision.h"
-#include "exec-cmd.h"
 #include "remote.h"
 #include "list-objects.h"
 #include "setup.h"
index 78d99f7c4b002cb95196800a62a1de8fbcce6cea..b395ef13279eaa3f672e36512a7816fee209abf9 100644 (file)
@@ -1,6 +1,5 @@
 #include "git-compat-util.h"
 #include "repository.h"
-#include "commit.h"
 #include "hex.h"
 #include "walker.h"
 #include "http.h"
diff --git a/http.c b/http.c
index 8f71bf00d8998af44e177a86d73dbc86872c9726..a64005ceb80bfca356845fa228881eebb21c09ac 100644 (file)
--- a/http.c
+++ b/http.c
@@ -15,7 +15,6 @@
 #include "trace.h"
 #include "transport.h"
 #include "packfile.h"
-#include "protocol.h"
 #include "string-list.h"
 #include "object-file.h"
 #include "object-store-ll.h"
index 996651e4f80abd5fa2daf570f9d981934d328aeb..904cb23cf57876fa6573acf71fdf9282b96b863e 100644 (file)
 #include "git-compat-util.h"
 #include "config.h"
 #include "credential.h"
-#include "exec-cmd.h"
 #include "gettext.h"
 #include "run-command.h"
 #include "parse-options.h"
 #include "setup.h"
-#include "strbuf.h"
 #if defined(NO_OPENSSL) && !defined(HAVE_OPENSSL_CSPRNG)
 typedef void *SSL;
 #endif
index 24a1ecb67799c23570ef485bc382b4bbdf2779d2..a878cb7810ad3361ac2f91d2c9bbd91c0ae69c26 100644 (file)
@@ -2,7 +2,6 @@
 #include "line-range.h"
 #include "hex.h"
 #include "tag.h"
-#include "blob.h"
 #include "tree.h"
 #include "diff.h"
 #include "commit.h"
@@ -12,7 +11,6 @@
 #include "xdiff-interface.h"
 #include "strbuf.h"
 #include "log-tree.h"
-#include "graph.h"
 #include "userdiff.h"
 #include "line-log.h"
 #include "setup.h"
index 47bf0d6f1a253a01baf6e3d0f68dfa5d5df6a0f0..60f0e5ada81967d3743ef866438aaf9b8efdc497 100644 (file)
@@ -1,7 +1,6 @@
 #include "git-compat-util.h"
 #include "line-range.h"
 #include "xdiff-interface.h"
-#include "strbuf.h"
 #include "userdiff.h"
 
 /*
index 8a08b7af49c1ff7750296508102bf67807027bea..c5f363ca6f729ace28756467470e56363fad7a1e 100644 (file)
@@ -1,11 +1,6 @@
 #include "git-compat-util.h"
-#include "commit.h"
 #include "config.h"
 #include "gettext.h"
-#include "revision.h"
-#include "strvec.h"
-#include "list-objects.h"
-#include "list-objects-filter.h"
 #include "list-objects-filter-options.h"
 #include "promisor-remote.h"
 #include "trace.h"
index 9327ccd5057cb6fffc9fcd9a92f2939a50b50253..da287cc8e0dd2935cb230dd256d5f268495ed40f 100644 (file)
@@ -2,14 +2,9 @@
 #include "dir.h"
 #include "gettext.h"
 #include "hex.h"
-#include "tag.h"
 #include "commit.h"
-#include "tree.h"
-#include "blob.h"
 #include "diff.h"
-#include "tree-walk.h"
 #include "revision.h"
-#include "list-objects.h"
 #include "list-objects-filter.h"
 #include "list-objects-filter-options.h"
 #include "oidmap.h"
index 0e49b932c308b24a5654910d5e0197cf1388162e..819cbefee3de07c7cb7f8f92e1fd715b1b2f7af6 100644 (file)
--- a/ls-refs.c
+++ b/ls-refs.c
@@ -5,7 +5,6 @@
 #include "hex.h"
 #include "repository.h"
 #include "refs.h"
-#include "remote.h"
 #include "strvec.h"
 #include "ls-refs.h"
 #include "pkt-line.h"
index 9293cbf75c8ab737a2cf7267d3e31ffd93a48dc8..2f659fd01432d4249d1d2be1876f0edfd8c9cd09 100644 (file)
@@ -1,6 +1,4 @@
 #include "git-compat-util.h"
-#include "run-command.h"
-#include "xdiff-interface.h"
 #include "merge-ll.h"
 #include "blob.h"
 #include "merge-blobs.h"
index 6491070d965835f9202b68fbdae72cb6cd6c987f..2a0be468505910cde87ee756aaf448c4873705b4 100644 (file)
@@ -19,7 +19,6 @@
 
 #include "alloc.h"
 #include "attr.h"
-#include "blob.h"
 #include "cache-tree.h"
 #include "commit.h"
 #include "commit-reach.h"
@@ -42,7 +41,6 @@
 #include "revision.h"
 #include "sparse-index.h"
 #include "strmap.h"
-#include "submodule-config.h"
 #include "submodule.h"
 #include "trace2.h"
 #include "tree.h"
index e3beb0801b115691d84b5da3403bc52abcb97336..a0c3e7a2d9105dd895f0ae2613d0f87f00b8d794 100644 (file)
@@ -6,10 +6,7 @@
 #include "git-compat-util.h"
 #include "merge-recursive.h"
 
-#include "advice.h"
 #include "alloc.h"
-#include "attr.h"
-#include "blob.h"
 #include "cache-tree.h"
 #include "commit.h"
 #include "commit-reach.h"
@@ -32,8 +29,6 @@
 #include "revision.h"
 #include "sparse-index.h"
 #include "string-list.h"
-#include "submodule-config.h"
-#include "submodule.h"
 #include "symlinks.h"
 #include "tag.h"
 #include "tree-walk.h"
diff --git a/merge.c b/merge.c
index b60925459c292bbb4a9daae46534edfbb3eca756..ca89b312d173530f8c8a1e5d07470b9d2404e9d4 100644 (file)
--- a/merge.c
+++ b/merge.c
@@ -1,6 +1,4 @@
 #include "git-compat-util.h"
-#include "diff.h"
-#include "diffcore.h"
 #include "gettext.h"
 #include "hash.h"
 #include "hex.h"
@@ -13,7 +11,6 @@
 #include "tree.h"
 #include "tree-walk.h"
 #include "unpack-trees.h"
-#include "dir.h"
 
 static const char *merge_argument(struct commit *commit)
 {
index de39028ab7f88058c87f735a79185da2f3b5e749..65e3c200084aa4a198145e2433ad6055425ae2fa 100644 (file)
@@ -1,6 +1,5 @@
 #include "git-compat-util.h"
 #include "noop.h"
-#include "../commit.h"
 #include "../fetch-negotiator.h"
 
 static void known_common(struct fetch_negotiator *n UNUSED,
diff --git a/notes.c b/notes.c
index 1ef2a331ce9302e58cb2078e58b7b40a94972b3e..fed1eda80cd7e41a2e21af26aed81e1dd472b27c 100644 (file)
--- a/notes.c
+++ b/notes.c
@@ -5,8 +5,6 @@
 #include "notes.h"
 #include "object-name.h"
 #include "object-store-ll.h"
-#include "blob.h"
-#include "tree.h"
 #include "utf8.h"
 #include "strbuf.h"
 #include "tree-walk.h"
index 7c7afe5793641c06b10dee6f1f6735a1a476c7d9..619f039ebc7ceb52467e4810c5c4cf3afabb907a 100644 (file)
 #include "hex.h"
 #include "string-list.h"
 #include "lockfile.h"
-#include "delta.h"
 #include "pack.h"
-#include "blob.h"
 #include "commit.h"
 #include "run-command.h"
-#include "tag.h"
-#include "tree.h"
-#include "tree-walk.h"
 #include "refs.h"
-#include "pack-revindex.h"
-#include "hash-lookup.h"
 #include "bulk-checkin.h"
 #include "repository.h"
 #include "replace-object.h"
 #include "streaming.h"
 #include "dir.h"
 #include "list.h"
-#include "mergesort.h"
 #include "quote.h"
 #include "packfile.h"
 #include "object-file.h"
index 0bfa29dbbfe9b489e454c03b419092294427425d..3a2ef5d6800173fa669bdfcb2612bf21a7c6417a 100644 (file)
@@ -8,7 +8,6 @@
 #include "tag.h"
 #include "commit.h"
 #include "tree.h"
-#include "blob.h"
 #include "tree-walk.h"
 #include "refs.h"
 #include "remote.h"
@@ -21,7 +20,6 @@
 #include "read-cache-ll.h"
 #include "repository.h"
 #include "setup.h"
-#include "submodule.h"
 #include "midx.h"
 #include "commit-reach.h"
 #include "date.h"
index f4ecdf8b0e3581cb6d92d0b88832c37adf749dc1..be4733e3bdcff59c135569d696b72e1451e53898 100644 (file)
@@ -4,12 +4,9 @@
 #include "hex.h"
 #include "object-store-ll.h"
 #include "commit.h"
-#include "tag.h"
 #include "diff.h"
 #include "revision.h"
-#include "list-objects.h"
 #include "progress.h"
-#include "pack-revindex.h"
 #include "pack.h"
 #include "pack-bitmap.h"
 #include "hash-lookup.h"
index 977f619618e0a9b97044f0b07e5617d3b3e1839b..25104d5b14c1e8f9a9988f106a1ad1a6823ca31c 100644 (file)
@@ -3,7 +3,6 @@
 #include "hex.h"
 #include "repository.h"
 #include "pack.h"
-#include "pack-revindex.h"
 #include "progress.h"
 #include "packfile.h"
 #include "object-file.h"
index b19ddf15b284868acd7ad9123aed8fba10d08d30..80ecfa544c5d9f7980adfad829e32cabd281ecc4 100644 (file)
@@ -7,7 +7,6 @@
 #include "remote.h"
 #include "chunk-format.h"
 #include "pack-mtimes.h"
-#include "oidmap.h"
 #include "pack-objects.h"
 #include "pack-revindex.h"
 #include "path.h"
index 9cc0a2e37a83dd38c2fe1b26d34cfb5fea983bc7..84a005674d8749407afffc1f6fd670501ce764d4 100644 (file)
@@ -9,7 +9,6 @@
 #include "mergesort.h"
 #include "packfile.h"
 #include "delta.h"
-#include "streaming.h"
 #include "hash-lookup.h"
 #include "commit.h"
 #include "object.h"
index e0c94b0546b5487c5b324c4c2b76d668289e8b10..6054a3ca5ae4e409ab98913b01fd4e4c557c8d0f 100644 (file)
@@ -2,8 +2,6 @@
 #include "parse-options.h"
 #include "abspath.h"
 #include "parse.h"
-#include "commit.h"
-#include "color.h"
 #include "gettext.h"
 #include "strbuf.h"
 #include "string-list.h"
index c3e1a0dd216c80c92c47f0e2a98d74a57c422742..a5683b462c6e7692ceff3218213b9747a9b6cc02 100644 (file)
@@ -2,7 +2,6 @@
 #include "diff.h"
 #include "commit.h"
 #include "hash.h"
-#include "hash-lookup.h"
 #include "hex.h"
 #include "patch-ids.h"
 
index 808a68c974ab7715513657c62d238aae8d3af07f..75f4cbb0a70951a85c8e5a4dba853f027ee7cf4b 100644 (file)
@@ -3,7 +3,6 @@
 #include "gettext.h"
 #include "hex.h"
 #include "pkt-line.h"
-#include "strvec.h"
 #include "hash-ll.h"
 #include "hex.h"
 #include "object.h"
index 0ce8f83e56a9b42400b8ec792b19deb3a69ddb6e..f29b06a5d059e23030333f26d5ba0667872251ab 100644 (file)
@@ -2,7 +2,6 @@
 #include "gettext.h"
 #include "hex.h"
 #include "refs.h"
-#include "tag.h"
 #include "commit.h"
 #include "blob.h"
 #include "diff.h"
index 080bd39713bc1782434b7212954e6bc590fa4d6d..08970caff7cd08112db8838465e953d6c8380d1b 100644 (file)
@@ -20,7 +20,6 @@
 #include "oid-array.h"
 #include "tree.h"
 #include "commit.h"
-#include "blob.h"
 #include "environment.h"
 #include "gettext.h"
 #include "mem-pool.h"
@@ -31,7 +30,6 @@
 #include "read-cache.h"
 #include "resolve-undo.h"
 #include "revision.h"
-#include "run-command.h"
 #include "strbuf.h"
 #include "trace2.h"
 #include "varint.h"
index e4d3510e28e15a7ff967737f08a8c1acadb588e1..96959a3762c1819232eb8be640d5c6d3b3a4226c 100644 (file)
 #include "ref-filter.h"
 #include "revision.h"
 #include "utf8.h"
-#include "version.h"
 #include "versioncmp.h"
 #include "trailer.h"
 #include "wt-status.h"
 #include "commit-slab.h"
-#include "commit-graph.h"
 #include "commit-reach.h"
 #include "worktree.h"
 #include "hashmap.h"
index 9ad50e7d93e40c7a5f9c7ad0cecb0b7d1766105b..0a1bc35e8cd2c82771c0272dcdc08f8b99ba73e7 100644 (file)
--- a/reflog.c
+++ b/reflog.c
@@ -6,7 +6,6 @@
 #include "revision.h"
 #include "tree.h"
 #include "tree-walk.h"
-#include "worktree.h"
 
 /* Remember to update object flag allocation in object.h */
 #define INCOMPLETE     (1u<<10)
index db5c0c7a724d57ad67250cb0be996ae5cfbc0372..922e65e0d9c7228ba584899229c1cced1f69766f 100644 (file)
@@ -1,5 +1,4 @@
 #include "../git-compat-util.h"
-#include "../config.h"
 #include "../copy.h"
 #include "../environment.h"
 #include "../gettext.h"
@@ -19,7 +18,6 @@
 #include "../dir.h"
 #include "../chdir-notify.h"
 #include "../setup.h"
-#include "../worktree.h"
 #include "../wrapper.h"
 #include "../write-or-die.h"
 #include "../revision.h"
index 59c78d7941f8d5e05fec6c895aafeb41803b919d..5963e67c14c6c4b7dff3986764666d2dafabf3e4 100644 (file)
@@ -1,5 +1,4 @@
 #include "../git-compat-util.h"
-#include "../alloc.h"
 #include "../config.h"
 #include "../gettext.h"
 #include "../hash.h"
index 6e3b725245c3e8df1ec666cc23ab51b718be1d1f..a372a00941fda659cc60722452c8766f9c7de455 100644 (file)
@@ -1,5 +1,4 @@
 #include "../git-compat-util.h"
-#include "../alloc.h"
 #include "../hash.h"
 #include "../refs.h"
 #include "../repository.h"
index ce936b4e1887ca982c9d814a014b469cbb49e52e..26e0393c7db7a4b6677bb3c5a73ce08559956dd7 100644 (file)
@@ -11,14 +11,12 @@ https://developers.google.com/open-source/licenses/bsd
 
 #include "reftable-blocksource.h"
 #include "reftable-error.h"
-#include "reftable-merged.h"
 #include "reftable-record.h"
 #include "reftable-tests.h"
 #include "reftable-writer.h"
 #include "reftable-iterator.h"
 #include "reftable-reader.h"
 #include "reftable-stack.h"
-#include "reftable-generic.h"
 
 #include <stddef.h>
 #include <stdio.h>
index 57f8032db941ca77f5c61d0e6d38268c56958be9..b9f1c7c18a2efc48e91c2526a42bb9433783f8dd 100644 (file)
@@ -6,7 +6,6 @@ license that can be found in the LICENSE file or at
 https://developers.google.com/open-source/licenses/bsd
 */
 
-#include "basics.h"
 #include "constants.h"
 #include "record.h"
 #include "generic.h"
index 5ded470c086c92760083dc16c08e7bdff821e9bf..9191f3addd1a33acf06415cd4b1955d055af04a7 100644 (file)
@@ -11,7 +11,6 @@ https://developers.google.com/open-source/licenses/bsd
 #include "constants.h"
 #include "iter.h"
 #include "pq.h"
-#include "reader.h"
 #include "record.h"
 #include "generic.h"
 #include "reftable-merged.h"
index d08c16abefbc3d8562c29cf1703d1a6908f71dcd..0d6e0d4bf572f46683a1a9a3c6e1c128ed51f928 100644 (file)
@@ -12,7 +12,6 @@ https://developers.google.com/open-source/licenses/bsd
 
 #include "basics.h"
 #include "blocksource.h"
-#include "constants.h"
 #include "reader.h"
 #include "record.h"
 #include "test_framework.h"
index b4db23ce1880794a937b841e28ffa27e8869d2c7..8b7a27781c32ee17b8c9258b000ad1e9a6b4a511 100644 (file)
@@ -16,7 +16,6 @@ https://developers.google.com/open-source/licenses/bsd
 #include "record.h"
 #include "reftable-error.h"
 #include "reftable-generic.h"
-#include "tree.h"
 
 uint64_t block_source_size(struct reftable_block_source *source)
 {
index 469ab79a5adf3dfaba0160e523bdcece5b9875e0..f0d468be3944aa12ed99d3481718debe1e04c1e9 100644 (file)
@@ -11,7 +11,6 @@ https://developers.google.com/open-source/licenses/bsd
 #include "basics.h"
 #include "block.h"
 #include "blocksource.h"
-#include "constants.h"
 #include "reader.h"
 #include "record.h"
 #include "test_framework.h"
index 8645cd93bbd8f9b51e05eb9143ed99217bfa1035..699e1aea4122d66a8a00451521f7d902858474c2 100644 (file)
@@ -9,7 +9,6 @@ https://developers.google.com/open-source/licenses/bsd
 #include "basics.h"
 #include "block.h"
 #include "blocksource.h"
-#include "constants.h"
 #include "reader.h"
 #include "record.h"
 #include "refname.h"
index d0b717510fa7d6dd8832bf77490630964e33b23b..d1b2908fa36f0dd15eece9034a7dbab9d55e7ce9 100644 (file)
@@ -13,7 +13,6 @@ https://developers.google.com/open-source/licenses/bsd
 #include "reftable-reader.h"
 #include "merged.h"
 #include "basics.h"
-#include "constants.h"
 #include "record.h"
 #include "test_framework.h"
 #include "reftable-tests.h"
index 84ac972cad063a3402731c704d9c7bfde4d24d6e..04044fc1a0fb5ffa143264527b882afb752fc2c6 100644 (file)
@@ -9,7 +9,6 @@ https://developers.google.com/open-source/licenses/bsd
 #include "system.h"
 #include "test_framework.h"
 
-#include "basics.h"
 
 void set_test_hash(uint8_t *p, int i)
 {
index ac3a045ad4afbc893f4daff8da98c768cabaf8fd..6961a657adb80497676895eedca696d142e5b57c 100644 (file)
@@ -9,8 +9,6 @@ https://developers.google.com/open-source/licenses/bsd
 #include "system.h"
 #include "tree.h"
 
-#include "basics.h"
-#include "record.h"
 #include "test_framework.h"
 #include "reftable-tests.h"
 
index ef05752ca5738ea16d16d38c8ea9c65e2a9ea167..204feebabe4cadfb9465a34817a690ea6e74daff 100644 (file)
@@ -8,7 +8,6 @@
 #include "strbuf.h"
 #include "walker.h"
 #include "http.h"
-#include "exec-cmd.h"
 #include "run-command.h"
 #include "pkt-line.h"
 #include "string-list.h"
index abb24822beb2a17187d4afa9474dd1c537f078ba..6bef95316af6573b5a6829ace42b183e25548939 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -15,7 +15,6 @@
 #include "diff.h"
 #include "revision.h"
 #include "dir.h"
-#include "tag.h"
 #include "setup.h"
 #include "string-list.h"
 #include "strvec.h"
index 09e19412859b3edb7be4142947d3967fc76520cc..ca7e77ba68c1ad4aa49f032906ba419098be0d04 100644 (file)
--- a/rerere.c
+++ b/rerere.c
 #include "dir.h"
 #include "resolve-undo.h"
 #include "merge-ll.h"
-#include "attr.h"
 #include "path.h"
 #include "pathspec.h"
 #include "object-file.h"
 #include "object-store-ll.h"
-#include "hash-lookup.h"
 #include "strmap.h"
 
 #define RESOLVED 0
diff --git a/reset.c b/reset.c
index 48da0adf851e1b09edfc22ffbbc0b1128cbbc5ab..0f2ff0fe31531fc5602025cfcd866a9348cfcf63 100644 (file)
--- a/reset.c
+++ b/reset.c
@@ -6,7 +6,6 @@
 #include "object-name.h"
 #include "refs.h"
 #include "reset.h"
-#include "run-command.h"
 #include "tree-walk.h"
 #include "tree.h"
 #include "unpack-trees.h"
index 00d5c29bfce18a1d4a5f5d701a593596ccd65783..51c056adbe110b4803d253c89c73ceae0acc6b25 100644 (file)
 #include "reflog-walk.h"
 #include "patch-ids.h"
 #include "decorate.h"
-#include "log-tree.h"
 #include "string-list.h"
 #include "line-log.h"
 #include "mailmap.h"
 #include "commit-slab.h"
-#include "dir.h"
 #include "cache-tree.h"
 #include "bisect.h"
 #include "packfile.h"
index a558042c876ad2baefcfcc111163bab9691f7f1c..0e7435718a52267a2421a27320b783ee9ce0c1a4 100644 (file)
@@ -14,9 +14,7 @@
 #include "quote.h"
 #include "config.h"
 #include "packfile.h"
-#include "hook.h"
 #include "compat/nonblock.h"
-#include "alloc.h"
 
 void child_process_init(struct child_process *child)
 {
index 89aca9d829ed046f532b87120f39d807c86ebcb9..37f59d4f66bbc2b21bf08288a75de4a159b24625 100644 (file)
@@ -4,7 +4,6 @@
 #include "date.h"
 #include "gettext.h"
 #include "hex.h"
-#include "refs.h"
 #include "object-store-ll.h"
 #include "pkt-line.h"
 #include "sideband.h"
@@ -12,7 +11,6 @@
 #include "remote.h"
 #include "connect.h"
 #include "send-pack.h"
-#include "quote.h"
 #include "transport.h"
 #include "version.h"
 #include "oid-array.h"
index d584cac8ed9307caad0f8a9ede98d1f57ceab874..fab88e4efcbdddba24a89e70d248f2bf83fb3a18 100644 (file)
 #include "pager.h"
 #include "commit.h"
 #include "sequencer.h"
-#include "tag.h"
 #include "run-command.h"
 #include "hook.h"
-#include "exec-cmd.h"
 #include "utf8.h"
 #include "cache-tree.h"
 #include "diff.h"
@@ -39,7 +37,6 @@
 #include "notes-utils.h"
 #include "sigchain.h"
 #include "unpack-trees.h"
-#include "worktree.h"
 #include "oidmap.h"
 #include "oidset.h"
 #include "commit-slab.h"
diff --git a/setup.c b/setup.c
index fc592dc6dd5bf3f2ac7ac01ca0d72b7ce0129e77..c5d3efe1964f024fa1766378d9998fa1a6f5447a 100644 (file)
--- a/setup.c
+++ b/setup.c
@@ -13,7 +13,6 @@
 #include "string-list.h"
 #include "chdir-notify.h"
 #include "path.h"
-#include "promisor-remote.h"
 #include "quote.h"
 #include "trace2.h"
 #include "worktree.h"
index ac728cdd77892dab1c323fc81adaf240d988c6d9..7711798127e49efaa18b6403ecf103f05e92f7e7 100644 (file)
--- a/shallow.c
+++ b/shallow.c
@@ -7,7 +7,6 @@
 #include "commit.h"
 #include "tag.h"
 #include "pkt-line.h"
-#include "remote.h"
 #include "refs.h"
 #include "oid-array.h"
 #include "path.h"
diff --git a/shell.c b/shell.c
index 5c67e7bd97e2c825d79c3503267b5b41cd83bb8a..2ece8b16e2e8e1e3473dbc7bae6deedea51ee4e8 100644 (file)
--- a/shell.c
+++ b/shell.c
@@ -4,7 +4,6 @@
 #include "strbuf.h"
 #include "run-command.h"
 #include "alias.h"
-#include "prompt.h"
 
 #define COMMAND_DIR "git-shell-commands"
 #define HELP_COMMAND COMMAND_DIR "/help"
index e603a19a876c88c59f18da33caa1541b15ded9f3..213da79f66116f3db835036140affb98406a934a 100644 (file)
 #include "string-list.h"
 #include "oid-array.h"
 #include "strvec.h"
-#include "blob.h"
 #include "thread-utils.h"
 #include "path.h"
-#include "quote.h"
 #include "remote.h"
 #include "worktree.h"
 #include "parse-options.h"
@@ -30,7 +28,6 @@
 #include "commit-reach.h"
 #include "read-cache-ll.h"
 #include "setup.h"
-#include "shallow.h"
 #include "trace2.h"
 
 static int config_update_recurse_submodules = RECURSE_SUBMODULES_OFF;
index 475058592d157da39a40ff32231a91f62a5d186a..09dc78733c009d386a7da4981aee1f3de4c57dda 100644 (file)
@@ -5,9 +5,7 @@
 #include "strbuf.h"
 #include "string-list.h"
 #include "transport.h"
-#include "ref-filter.h"
 #include "remote.h"
-#include "refs.h"
 
 enum input_mode {
        KEY_VALUE_PAIRS,
index 3e173399a00f5296a70aa293107dfb4db94b1633..1e159a754db6db5d02eaa81072b0ab19fa863004 100644 (file)
@@ -1,11 +1,9 @@
 #include "test-tool.h"
 #include "commit.h"
 #include "commit-reach.h"
-#include "config.h"
 #include "gettext.h"
 #include "hex.h"
 #include "object-name.h"
-#include "parse-options.h"
 #include "ref-filter.h"
 #include "setup.h"
 #include "string-list.h"
index 4cd8a952e5c6f55fbb3cfdbffe8c3be07bf008d7..c925655c648282400e52ad2aad1022338d252a04 100644 (file)
@@ -1,7 +1,6 @@
 #include "test-tool.h"
 #include "commit-graph.h"
 #include "commit.h"
-#include "config.h"
 #include "environment.h"
 #include "hex.h"
 #include "object-store-ll.h"
index 941ae7e3bcf3eda6e88148d9ff9d923aea707ada..fb5927775daef80040ea9675742aa2cb47d46d4e 100644 (file)
@@ -4,7 +4,6 @@
 
 #include "test-tool.h"
 #include "gettext.h"
-#include "strbuf.h"
 #include "simple-ipc.h"
 #include "parse-options.h"
 #include "thread-utils.h"
index 5f9074ad1c0b063a0cb906c2dc6182357adcd5ee..3509258be53644973ca2b2b04cc0ec5b27ea96c6 100644 (file)
@@ -6,7 +6,6 @@
 #include "environment.h"
 #include "object-file.h"
 #include "path.h"
-#include "sigchain.h"
 #include "string-list.h"
 #include "strbuf.h"
 #include "strvec.h"
index 6dc74dff4c73205d332a227b0caf2497b71f7538..d961f0e3a84a97a67115c0493cb526e736bcc5c4 100644 (file)
--- a/trace2.c
+++ b/trace2.c
@@ -1,12 +1,9 @@
 #include "git-compat-util.h"
 #include "config.h"
-#include "json-writer.h"
-#include "quote.h"
 #include "repository.h"
 #include "run-command.h"
 #include "sigchain.h"
 #include "thread-utils.h"
-#include "version.h"
 #include "trace.h"
 #include "trace2.h"
 #include "trace2/tr2_cfg.h"
index 49811ef176dbc5af5e33fe47cf93cf1f57719f5e..e34a8f47cfbf5cba150e1aa7c6267fc2b1c080c0 100644 (file)
@@ -3,13 +3,11 @@
 #include "quote.h"
 #include "run-command.h"
 #include "commit.h"
-#include "diff.h"
 #include "environment.h"
 #include "gettext.h"
 #include "hex.h"
 #include "object-name.h"
 #include "repository.h"
-#include "revision.h"
 #include "remote.h"
 #include "string-list.h"
 #include "thread-utils.h"
index 219af8fd50ed57c0fc0f954965e481b51e7aae72..bd7899e9bf5550b2b333dbbcf85a5b98c7813ad2 100644 (file)
@@ -10,9 +10,7 @@
 #include "remote.h"
 #include "connect.h"
 #include "send-pack.h"
-#include "walker.h"
 #include "bundle.h"
-#include "dir.h"
 #include "gettext.h"
 #include "refs.h"
 #include "refspec.h"
@@ -26,7 +24,6 @@
 #include "transport-internal.h"
 #include "protocol.h"
 #include "object-name.h"
-#include "object-store-ll.h"
 #include "color.h"
 #include "bundle-uri.h"
 
diff --git a/tree.c b/tree.c
index 990f9c9854e6a1a957ed01f74b20e694af07f278..508e5fd76fd5bb588796bb9c51a78557880ba074 100644 (file)
--- a/tree.c
+++ b/tree.c
@@ -1,12 +1,9 @@
 #include "git-compat-util.h"
-#include "cache-tree.h"
 #include "hex.h"
 #include "tree.h"
 #include "object-name.h"
 #include "object-store-ll.h"
-#include "blob.h"
 #include "commit.h"
-#include "tag.h"
 #include "alloc.h"
 #include "tree-walk.h"
 #include "repository.h"
index ea234ab6a4522489c7a70a3cfa6d6449c46013c5..2537affa90762228a19d305be749f410d5afb5dc 100644 (file)
@@ -9,13 +9,10 @@
 #include "repository.h"
 #include "object-store-ll.h"
 #include "oid-array.h"
-#include "tag.h"
 #include "object.h"
 #include "commit.h"
 #include "diff.h"
 #include "revision.h"
-#include "list-objects.h"
-#include "list-objects-filter.h"
 #include "list-objects-filter-options.h"
 #include "run-command.h"
 #include "connect.h"
 #include "string-list.h"
 #include "strvec.h"
 #include "trace2.h"
-#include "prio-queue.h"
 #include "protocol.h"
-#include "quote.h"
 #include "upload-pack.h"
-#include "serve.h"
 #include "commit-graph.h"
 #include "commit-reach.h"
 #include "shallow.h"
index 7da15a56da614ce82ca1d6a5c6e2277b444f1063..eeac3741cf1a4e90ceab3bef07028aad632ebfb6 100644 (file)
--- a/wrapper.c
+++ b/wrapper.c
@@ -5,7 +5,6 @@
 #include "abspath.h"
 #include "parse.h"
 #include "gettext.h"
-#include "repository.h"
 #include "strbuf.h"
 #include "trace2.h"
 
index adcea109fa9a54eaa96c67c1b5e8a1689af253af..b39ffb1f7183d2eeeb4dd1b5a4ff44d474aecaf8 100644 (file)
@@ -6,8 +6,6 @@
 #include "xdiff-interface.h"
 #include "xdiff/xtypes.h"
 #include "xdiff/xdiffi.h"
-#include "xdiff/xemit.h"
-#include "xdiff/xmacros.h"
 #include "xdiff/xutils.h"
 
 struct xdiff_emit_state {