]> 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:15:00 +0000 (17:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Dec 2023 20:04:33 +0000 (12:04 -0800)
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
22 files changed:
builtin/archive.c
builtin/commit-graph.c
builtin/fsck.c
builtin/fsmonitor--daemon.c
builtin/grep.c
builtin/mktag.c
builtin/rev-list.c
builtin/send-pack.c
commit-graph.c
compat/simple-ipc/ipc-shared.c
compat/simple-ipc/ipc-unix-socket.c
fsmonitor-ipc.c
http.c
line-log.c
merge-ort.c
notes-utils.c
ref-filter.c
remote-curl.c
repo-settings.c
t/helper/test-repository.c
trace2/tr2_ctr.c
trace2/tr2_tmr.c

index 90761fdfee0f58f0d2d8cca9c7b0bcd6e0ee7fe9..15ee1ec7bb765fe6307dc3f17cde238242169cc4 100644 (file)
@@ -9,7 +9,6 @@
 #include "parse-options.h"
 #include "pkt-line.h"
 #include "repository.h"
-#include "sideband.h"
 
 static void create_output_file(const char *output_file)
 {
index 81a28c6fcddf49f932c10b4075a513ba274a500b..666ad574a46b1218def7201e581e969f90e57d48 100644 (file)
@@ -4,7 +4,6 @@
 #include "environment.h"
 #include "gettext.h"
 #include "hex.h"
-#include "lockfile.h"
 #include "parse-options.h"
 #include "repository.h"
 #include "commit-graph.h"
index 9317b7b841d1f7219aabdac18557a8273e12a4c7..a7cf94f67edf3aaace9fdbbca29778d6857d28af 100644 (file)
@@ -10,7 +10,6 @@
 #include "refs.h"
 #include "pack.h"
 #include "cache-tree.h"
-#include "tree-walk.h"
 #include "fsck.h"
 #include "parse-options.h"
 #include "progress.h"
index 9f80b9eaff5b387a7667d15e4d913cf6f1956d45..1593713f4cb29fe8e608f4c3c7502fa5a624d1f9 100644 (file)
@@ -7,7 +7,6 @@
 #include "parse-options.h"
 #include "fsmonitor-ll.h"
 #include "fsmonitor-ipc.h"
-#include "fsmonitor-path-utils.h"
 #include "fsmonitor-settings.h"
 #include "compat/fsmonitor/fsm-health.h"
 #include "compat/fsmonitor/fsm-listen.h"
@@ -15,7 +14,6 @@
 #include "repository.h"
 #include "simple-ipc.h"
 #include "khash.h"
-#include "pkt-line.h"
 #include "run-command.h"
 #include "trace.h"
 #include "trace2.h"
index f076cc705b404bcb73e3abd64265a8848a47a361..c8e33f977552081fcde8afc12d0aa92bfc4b5e62 100644 (file)
@@ -14,7 +14,6 @@
 #include "parse-options.h"
 #include "string-list.h"
 #include "run-command.h"
-#include "userdiff.h"
 #include "grep.h"
 #include "quote.h"
 #include "dir.h"
index d8e0b5afc079d2f71383eed6881b733fea251312..4767f1a97e6df25ca09eba0846feaf404e08fe46 100644 (file)
@@ -3,7 +3,6 @@
 #include "hex.h"
 #include "parse-options.h"
 #include "strbuf.h"
-#include "tag.h"
 #include "replace-object.h"
 #include "object-file.h"
 #include "object-store-ll.h"
index 460ba7cbaa7ead0fa88453cc5d6e4bc0e4a8f768..b3f47838580c9dd0ed233a3ac34c19aac6b7fa0f 100644 (file)
@@ -12,7 +12,6 @@
 #include "object-name.h"
 #include "object-file.h"
 #include "object-store-ll.h"
-#include "pack.h"
 #include "pack-bitmap.h"
 #include "log-tree.h"
 #include "graph.h"
index 395f2e490d4ab8603f6c10a3527abdc3ba973619..0b839f583a0aa33b96e38f71e27e3183daabc28a 100644 (file)
@@ -2,7 +2,6 @@
 #include "config.h"
 #include "hex.h"
 #include "pkt-line.h"
-#include "sideband.h"
 #include "run-command.h"
 #include "remote.h"
 #include "connect.h"
index e7212400da37c15ea7b3d987bffda57bda8ad9a2..15980cf949261ee96af9414a07a349f73279080d 100644 (file)
@@ -4,7 +4,6 @@
 #include "gettext.h"
 #include "hex.h"
 #include "lockfile.h"
-#include "pack.h"
 #include "packfile.h"
 #include "commit.h"
 #include "object.h"
index e5e1dda8ccdb60320a05b064479595eb4eb4997c..cb176d966f287d98e44495db1797061c8c1102af 100644 (file)
@@ -1,8 +1,5 @@
 #include "git-compat-util.h"
 #include "simple-ipc.h"
-#include "strbuf.h"
-#include "pkt-line.h"
-#include "thread-utils.h"
 
 #ifndef SUPPORTS_SIMPLE_IPC
 /*
index b2f4f22ce44f51f6f8f18e0d7ca6a2ed22de183b..9b3f2cdf8c9608a5aae4dc3ebfd8fa208c5617de 100644 (file)
@@ -2,7 +2,6 @@
 #include "gettext.h"
 #include "simple-ipc.h"
 #include "strbuf.h"
-#include "pkt-line.h"
 #include "thread-utils.h"
 #include "trace2.h"
 #include "unix-socket.h"
index 153918cf768c48f4b9cad799cd728c45a152a8ad..45471b5b741a19515b5d0caea2dd01dd3e9fce25 100644 (file)
@@ -1,5 +1,4 @@
 #include "git-compat-util.h"
-#include "fsmonitor-ll.h"
 #include "gettext.h"
 #include "simple-ipc.h"
 #include "fsmonitor-ipc.h"
diff --git a/http.c b/http.c
index a64005ceb80bfca356845fa228881eebb21c09ac..3565c4ec6113e6a1039ff2c65fef684a28d7d277 100644 (file)
--- a/http.c
+++ b/http.c
@@ -4,7 +4,6 @@
 #include "http.h"
 #include "config.h"
 #include "pack.h"
-#include "sideband.h"
 #include "run-command.h"
 #include "url.h"
 #include "urlmatch.h"
index c276ccec54959199b0a6bf4cb1f37757a359a428..8ff6ccb77241fd249f58827ecc1add65356648a4 100644 (file)
@@ -12,7 +12,6 @@
 #include "xdiff-interface.h"
 #include "strbuf.h"
 #include "log-tree.h"
-#include "userdiff.h"
 #include "line-log.h"
 #include "setup.h"
 #include "strvec.h"
index 2a0be468505910cde87ee756aaf448c4873705b4..77ba7f3020c8c112bf2e6bff9dae78d4d0ca847b 100644 (file)
@@ -41,7 +41,6 @@
 #include "revision.h"
 #include "sparse-index.h"
 #include "strmap.h"
-#include "submodule.h"
 #include "trace2.h"
 #include "tree.h"
 #include "unpack-trees.h"
index 97c031c26ec7c7c2fdade8478fa039d470820bad..08e5dbc607302bfef2d91cc188b2f6a4d5972bc1 100644 (file)
@@ -5,7 +5,6 @@
 #include "gettext.h"
 #include "refs.h"
 #include "notes-utils.h"
-#include "repository.h"
 #include "strbuf.h"
 
 void create_notes_commit(struct repository *r,
index 96959a3762c1819232eb8be640d5c6d3b3a4226c..01b90e325c2364b92daecb52247d4e300aa22ea5 100644 (file)
@@ -29,7 +29,6 @@
 #include "commit-reach.h"
 #include "worktree.h"
 #include "hashmap.h"
-#include "strvec.h"
 
 static struct ref_msg {
        const char *gone;
index 55eefa70f97f5a29fab4a08047aacc0073c21ac9..7f81bf3fafc4e5de90fa1fbf19c3b2cde26df8aa 100644 (file)
@@ -11,7 +11,6 @@
 #include "run-command.h"
 #include "pkt-line.h"
 #include "string-list.h"
-#include "sideband.h"
 #include "strvec.h"
 #include "credential.h"
 #include "oid-array.h"
index 525f69c0c7785845cdf8991e56c8d231c2e6d239..30cd4787627b7cacbc2dbceddc0babee1b72cb3e 100644 (file)
@@ -2,7 +2,6 @@
 #include "config.h"
 #include "repository.h"
 #include "midx.h"
-#include "compat/fsmonitor/fsm-listen.h"
 
 static void repo_cfg_bool(struct repository *r, const char *key, int *dest,
                          int def)
index c925655c648282400e52ad2aad1022338d252a04..0c7c5aa4dd7641a72b930b57eeff17dbf90c4c16 100644 (file)
@@ -3,7 +3,6 @@
 #include "commit.h"
 #include "environment.h"
 #include "hex.h"
-#include "object-store-ll.h"
 #include "object.h"
 #include "repository.h"
 #include "setup.h"
index 87cf9034fba4b91b4d569ea4013e13f9d19b4aa9..d3a33715c14b9c83647cc4940da4d1abad30dc63 100644 (file)
@@ -1,5 +1,4 @@
 #include "git-compat-util.h"
-#include "thread-utils.h"
 #include "trace2/tr2_tgt.h"
 #include "trace2/tr2_tls.h"
 #include "trace2/tr2_ctr.h"
index 31d0e4d1bd1220ea0c9d9b204223766235d81e07..51f564b07a4091a24db71b3a756b4730173cae98 100644 (file)
@@ -1,5 +1,4 @@
 #include "git-compat-util.h"
-#include "thread-utils.h"
 #include "trace2/tr2_tgt.h"
 #include "trace2/tr2_tls.h"
 #include "trace2/tr2_tmr.h"