cache.h: remove dependence on hex.h; make other files include it explicitly

Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elijah Newren committed Feb 24, 2023 at 00:09 UTC 41771fa435a44ff8be3f23753bde0309a2a65b03
173 files changed +172 -1
add-interactive.c
+1
@@ -3,6 +3,7 @@
3 #include "color.h"
4 #include "config.h"
5 #include "diffcore.h"
6 +#include "hex.h"
7 #include "revision.h"
8 #include "refs.h"
9 #include "string-list.h"
apply.c
+1
@@ -15,6 +15,7 @@
15 #include "delta.h"
16 #include "diff.h"
17 #include "dir.h"
18 +#include "hex.h"
19 #include "xdiff-interface.h"
20 #include "ll-merge.h"
21 #include "lockfile.h"
archive-tar.c
+1
@@ -4,6 +4,7 @@
4 #include "git-compat-util.h"
5 #include "alloc.h"
6 #include "config.h"
7 +#include "hex.h"
8 #include "tar.h"
9 #include "archive.h"
10 #include "object-store.h"
archive-zip.c
+1
@@ -4,6 +4,7 @@
4 #include "cache.h"
5 #include "config.h"
6 #include "archive.h"
7 +#include "hex.h"
8 #include "streaming.h"
9 #include "utf8.h"
10 #include "object-store.h"
archive.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "refs.h"
6 #include "object-store.h"
7 #include "commit.h"
bisect.c
+1
@@ -2,6 +2,7 @@
2 #include "config.h"
3 #include "commit.h"
4 #include "diff.h"
5 +#include "hex.h"
6 #include "revision.h"
7 #include "refs.h"
8 #include "list-objects.h"
blame.c
+1
@@ -5,6 +5,7 @@
5 #include "mergesort.h"
6 #include "diff.h"
7 #include "diffcore.h"
8 +#include "hex.h"
9 #include "tag.h"
10 #include "blame.h"
11 #include "alloc.h"
branch.c
+1
@@ -2,6 +2,7 @@
2 #include "cache.h"
3 #include "config.h"
4 #include "branch.h"
5 +#include "hex.h"
6 #include "refs.h"
7 #include "refspec.h"
8 #include "remote.h"
builtin/am.c
+1
@@ -8,6 +8,7 @@
8 #include "config.h"
9 #include "builtin.h"
10 #include "exec-cmd.h"
11 +#include "hex.h"
12 #include "parse-options.h"
13 #include "dir.h"
14 #include "run-command.h"
builtin/bisect.c
+1
@@ -1,5 +1,6 @@
1 #include "builtin.h"
2 #include "cache.h"
3 +#include "hex.h"
4 #include "parse-options.h"
5 #include "bisect.h"
6 #include "refs.h"
builtin/blame.c
+1
@@ -10,6 +10,7 @@
10 #include "config.h"
11 #include "color.h"
12 #include "builtin.h"
13 +#include "hex.h"
14 #include "repository.h"
15 #include "commit.h"
16 #include "diff.h"
builtin/cat-file.c
+1
@@ -9,6 +9,7 @@
9 #include "config.h"
10 #include "builtin.h"
11 #include "diff.h"
12 +#include "hex.h"
13 #include "parse-options.h"
14 #include "userdiff.h"
15 #include "streaming.h"
builtin/checkout.c
+1
@@ -9,6 +9,7 @@
9 #include "config.h"
10 #include "diff.h"
11 #include "dir.h"
12 +#include "hex.h"
13 #include "hook.h"
14 #include "ll-merge.h"
15 #include "lockfile.h"
builtin/clone.c
+1
@@ -11,6 +11,7 @@
11 #define USE_THE_INDEX_VARIABLE
12 #include "builtin.h"
13 #include "config.h"
14 +#include "hex.h"
15 #include "lockfile.h"
16 #include "parse-options.h"
17 #include "fetch-pack.h"
builtin/commit-graph.c
+1
@@ -1,6 +1,7 @@
1 #include "builtin.h"
2 #include "config.h"
3 #include "dir.h"
4 +#include "hex.h"
5 #include "lockfile.h"
6 #include "parse-options.h"
7 #include "repository.h"
builtin/commit-tree.c
+1
@@ -5,6 +5,7 @@
5 */
6 #include "cache.h"
7 #include "config.h"
8 +#include "hex.h"
9 #include "object-store.h"
10 #include "repository.h"
11 #include "commit.h"
builtin/describe.c
+1
@@ -1,6 +1,7 @@
1 #define USE_THE_INDEX_VARIABLE
2 #include "cache.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "lockfile.h"
6 #include "commit.h"
7 #include "tag.h"
builtin/diff-tree.c
+1
@@ -3,6 +3,7 @@
3 #include "config.h"
4 #include "diff.h"
5 #include "commit.h"
6 +#include "hex.h"
7 #include "log-tree.h"
8 #include "builtin.h"
9 #include "submodule.h"
builtin/difftool.c
+1
@@ -17,6 +17,7 @@
17 #include "builtin.h"
18 #include "run-command.h"
19 #include "exec-cmd.h"
20 +#include "hex.h"
21 #include "parse-options.h"
22 #include "strvec.h"
23 #include "strbuf.h"
builtin/fast-export.c
+1
@@ -6,6 +6,7 @@
6 #include "builtin.h"
7 #include "cache.h"
8 #include "config.h"
9 +#include "hex.h"
10 #include "refs.h"
11 #include "refspec.h"
12 #include "object-store.h"
builtin/fast-import.c
+1
@@ -1,5 +1,6 @@
1 #include "builtin.h"
2 #include "cache.h"
3 +#include "hex.h"
4 #include "repository.h"
5 #include "config.h"
6 #include "lockfile.h"
builtin/fetch-pack.c
+1
@@ -1,5 +1,6 @@
1 #include "builtin.h"
2 #include "alloc.h"
3 +#include "hex.h"
4 #include "pkt-line.h"
5 #include "fetch-pack.h"
6 #include "remote.h"
builtin/fetch.c
+1
@@ -3,6 +3,7 @@
3 */
4 #include "cache.h"
5 #include "config.h"
6 +#include "hex.h"
7 #include "repository.h"
8 #include "refs.h"
9 #include "refspec.h"
builtin/fsck.c
+1
@@ -1,6 +1,7 @@
1 #define USE_THE_INDEX_VARIABLE
2 #include "builtin.h"
3 #include "cache.h"
4 +#include "hex.h"
5 #include "repository.h"
6 #include "config.h"
7 #include "commit.h"
builtin/gc.c
+1
@@ -11,6 +11,7 @@
11 */
12
13 #include "builtin.h"
14 +#include "hex.h"
15 #include "repository.h"
16 #include "config.h"
17 #include "tempfile.h"
builtin/grep.c
+1
@@ -5,6 +5,7 @@
5 */
6 #include "cache.h"
7 #include "alloc.h"
8 +#include "hex.h"
9 #include "repository.h"
10 #include "config.h"
11 #include "blob.h"
builtin/hash-object.c
+1
@@ -6,6 +6,7 @@
6 */
7 #include "builtin.h"
8 #include "config.h"
9 +#include "hex.h"
10 #include "object-store.h"
11 #include "blob.h"
12 #include "quote.h"
builtin/index-pack.c
+1
@@ -2,6 +2,7 @@
2 #include "alloc.h"
3 #include "config.h"
4 #include "delta.h"
5 +#include "hex.h"
6 #include "pack.h"
7 #include "csum-file.h"
8 #include "blob.h"
builtin/log.c
+1
@@ -7,6 +7,7 @@
7 #include "git-compat-util.h"
8 #include "alloc.h"
9 #include "config.h"
10 +#include "hex.h"
11 #include "refs.h"
12 #include "object-store.h"
13 #include "color.h"
builtin/ls-remote.c
+1
@@ -1,5 +1,6 @@
1 #include "builtin.h"
2 #include "cache.h"
3 +#include "hex.h"
4 #include "transport.h"
5 #include "ref-filter.h"
6 #include "remote.h"
builtin/ls-tree.c
+1
@@ -5,6 +5,7 @@
5 */
6 #include "cache.h"
7 #include "config.h"
8 +#include "hex.h"
9 #include "object-store.h"
10 #include "blob.h"
11 #include "tree.h"
builtin/merge-base.c
+1
@@ -2,6 +2,7 @@
2 #include "cache.h"
3 #include "config.h"
4 #include "commit.h"
5 +#include "hex.h"
6 #include "refs.h"
7 #include "diff.h"
8 #include "revision.h"
builtin/merge-index.c
+1
@@ -1,5 +1,6 @@
1 #define USE_THE_INDEX_VARIABLE
2 #include "builtin.h"
3 +#include "hex.h"
4 #include "run-command.h"
5
6 static const char *pgm;
builtin/merge-tree.c
+1
@@ -3,6 +3,7 @@
3 #include "tree-walk.h"
4 #include "xdiff-interface.h"
5 #include "help.h"
6 +#include "hex.h"
7 #include "commit.h"
8 #include "commit-reach.h"
9 #include "merge-ort.h"
builtin/merge.c
+1
@@ -10,6 +10,7 @@
10 #include "cache.h"
11 #include "alloc.h"
12 #include "config.h"
13 +#include "hex.h"
14 #include "parse-options.h"
15 #include "builtin.h"
16 #include "lockfile.h"
builtin/mktag.c
+1
@@ -1,4 +1,5 @@
1 #include "builtin.h"
2 +#include "hex.h"
3 #include "parse-options.h"
4 #include "tag.h"
5 #include "replace-object.h"
builtin/mktree.c
+1
@@ -5,6 +5,7 @@
5 */
6 #include "builtin.h"
7 #include "alloc.h"
8 +#include "hex.h"
9 #include "quote.h"
10 #include "tree.h"
11 #include "parse-options.h"
builtin/name-rev.c
+1
@@ -1,5 +1,6 @@
1 #include "builtin.h"
2 #include "alloc.h"
3 +#include "hex.h"
4 #include "repository.h"
5 #include "config.h"
6 #include "commit.h"
builtin/notes.c
+1
@@ -10,6 +10,7 @@
10 #include "cache.h"
11 #include "config.h"
12 #include "builtin.h"
13 +#include "hex.h"
14 #include "notes.h"
15 #include "object-store.h"
16 #include "repository.h"
builtin/pack-objects.c
+1
@@ -1,5 +1,6 @@
1 #include "builtin.h"
2 #include "alloc.h"
3 +#include "hex.h"
4 #include "repository.h"
5 #include "config.h"
6 #include "attr.h"
builtin/pack-redundant.c
+1
@@ -7,6 +7,7 @@
7 */
8
9 #include "builtin.h"
10 +#include "hex.h"
11 #include "repository.h"
12 #include "packfile.h"
13 #include "object-store.h"
builtin/patch-id.c
+1
@@ -2,6 +2,7 @@
2 #include "builtin.h"
3 #include "config.h"
4 #include "diff.h"
5 +#include "hex.h"
6 #include "parse-options.h"
7
8 static void flush_current_id(int patchlen, struct object_id *id, struct object_id *result)
builtin/prune.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "commit.h"
3 #include "diff.h"
4 +#include "hex.h"
5 #include "revision.h"
6 #include "builtin.h"
7 #include "reachable.h"
builtin/pull.c
+1
@@ -9,6 +9,7 @@
9 #include "cache.h"
10 #include "config.h"
11 #include "builtin.h"
12 +#include "hex.h"
13 #include "parse-options.h"
14 #include "exec-cmd.h"
15 #include "run-command.h"
builtin/read-tree.c
+1
@@ -7,6 +7,7 @@
7 #define USE_THE_INDEX_VARIABLE
8 #include "cache.h"
9 #include "config.h"
10 +#include "hex.h"
11 #include "lockfile.h"
12 #include "object.h"
13 #include "tree.h"
builtin/rebase.c
+1
@@ -6,6 +6,7 @@
6
7 #define USE_THE_INDEX_VARIABLE
8 #include "builtin.h"
9 +#include "hex.h"
10 #include "run-command.h"
11 #include "exec-cmd.h"
12 #include "strvec.h"
builtin/receive-pack.c
+1
@@ -1,6 +1,7 @@
1 #include "builtin.h"
2 #include "repository.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "lockfile.h"
6 #include "pack.h"
7 #include "refs.h"
builtin/repack.c
+1
@@ -2,6 +2,7 @@
2 #include "alloc.h"
3 #include "config.h"
4 #include "dir.h"
5 +#include "hex.h"
6 #include "parse-options.h"
7 #include "run-command.h"
8 #include "sigchain.h"
builtin/replace.c
+1
@@ -11,6 +11,7 @@
11 #include "cache.h"
12 #include "config.h"
13 #include "builtin.h"
14 +#include "hex.h"
15 #include "refs.h"
16 #include "parse-options.h"
17 #include "run-command.h"
builtin/reset.c
+1
@@ -10,6 +10,7 @@
10 #define USE_THE_INDEX_VARIABLE
11 #include "builtin.h"
12 #include "config.h"
13 +#include "hex.h"
14 #include "lockfile.h"
15 #include "tag.h"
16 #include "object.h"
builtin/rev-list.c
+1
@@ -2,6 +2,7 @@
2 #include "config.h"
3 #include "commit.h"
4 #include "diff.h"
5 +#include "hex.h"
6 #include "revision.h"
7 #include "list-objects.h"
8 #include "list-objects-filter.h"
builtin/rev-parse.c
+1
@@ -8,6 +8,7 @@
8 #include "alloc.h"
9 #include "config.h"
10 #include "commit.h"
11 +#include "hex.h"
12 #include "refs.h"
13 #include "quote.h"
14 #include "builtin.h"
builtin/send-pack.c
+1
@@ -1,6 +1,7 @@
1 #include "builtin.h"
2 #include "config.h"
3 #include "commit.h"
4 +#include "hex.h"
5 #include "refs.h"
6 #include "pkt-line.h"
7 #include "sideband.h"
builtin/show-branch.c
+1
@@ -1,5 +1,6 @@
1 #include "cache.h"
2 #include "config.h"
3 +#include "hex.h"
4 #include "pretty.h"
5 #include "refs.h"
6 #include "builtin.h"
builtin/show-index.c
+1
@@ -1,5 +1,6 @@
1 #include "builtin.h"
2 #include "cache.h"
3 +#include "hex.h"
4 #include "pack.h"
5 #include "parse-options.h"
6
builtin/show-ref.c
+1
@@ -1,6 +1,7 @@
1 #include "builtin.h"
2 #include "cache.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "refs.h"
6 #include "object-store.h"
7 #include "object.h"
builtin/stash.c
+1
@@ -1,6 +1,7 @@
1 #define USE_THE_INDEX_VARIABLE
2 #include "builtin.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "parse-options.h"
6 #include "refs.h"
7 #include "lockfile.h"
builtin/submodule--helper.c
+1
@@ -1,6 +1,7 @@
1 #define USE_THE_INDEX_VARIABLE
2 #include "builtin.h"
3 #include "alloc.h"
4 +#include "hex.h"
5 #include "repository.h"
6 #include "cache.h"
7 #include "config.h"
builtin/tag.c
+1
@@ -9,6 +9,7 @@
9 #include "cache.h"
10 #include "config.h"
11 #include "builtin.h"
12 +#include "hex.h"
13 #include "refs.h"
14 #include "object-store.h"
15 #include "tag.h"
builtin/unpack-file.c
+1
@@ -1,5 +1,6 @@
1 #include "builtin.h"
2 #include "config.h"
3 +#include "hex.h"
4 #include "object-store.h"
5
6 static char *create_temp_file(struct object_id *oid)
builtin/unpack-objects.c
+1
@@ -2,6 +2,7 @@
2 #include "cache.h"
3 #include "bulk-checkin.h"
4 #include "config.h"
5 +#include "hex.h"
6 #include "object-store.h"
7 #include "object.h"
8 #include "delta.h"
builtin/update-index.c
+1
@@ -7,6 +7,7 @@
7 #include "cache.h"
8 #include "bulk-checkin.h"
9 #include "config.h"
10 +#include "hex.h"
11 #include "lockfile.h"
12 #include "quote.h"
13 #include "cache-tree.h"
builtin/worktree.c
+1
@@ -3,6 +3,7 @@
3 #include "config.h"
4 #include "builtin.h"
5 #include "dir.h"
6 +#include "hex.h"
7 #include "parse-options.h"
8 #include "strvec.h"
9 #include "branch.h"
builtin/write-tree.c
+1
@@ -7,6 +7,7 @@
7 #include "builtin.h"
8 #include "cache.h"
9 #include "config.h"
10 +#include "hex.h"
11 #include "tree.h"
12 #include "cache-tree.h"
13 #include "parse-options.h"
bulk-checkin.c
+1
@@ -4,6 +4,7 @@
4 #include "git-compat-util.h"
5 #include "alloc.h"
6 #include "bulk-checkin.h"
7 +#include "hex.h"
8 #include "lockfile.h"
9 #include "repository.h"
10 #include "csum-file.h"
bundle.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "lockfile.h"
3 #include "bundle.h"
4 +#include "hex.h"
5 #include "object-store.h"
6 #include "repository.h"
7 #include "object.h"
cache-tree.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 +#include "hex.h"
4 #include "lockfile.h"
5 #include "tree.h"
6 #include "tree-walk.h"
cache.h
-1
@@ -13,7 +13,6 @@
13 #include "string-list.h"
14 #include "pack-revindex.h"
15 #include "hash.h"
16 -#include "hex.h"
16 #include "path.h"
17 #include "oid-array.h"
18 #include "repository.h"
color.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "config.h"
3 #include "color.h"
4 +#include "hex.h"
5
6 static int git_use_color_default = GIT_COLOR_AUTO;
7 int color_stdout_is_tty = -1;
combine-diff.c
+1
@@ -4,6 +4,7 @@
4 #include "blob.h"
5 #include "diff.h"
6 #include "diffcore.h"
7 +#include "hex.h"
8 #include "quote.h"
9 #include "xdiff-interface.h"
10 #include "xdiff/xmacros.h"
commit-graph.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "config.h"
3 +#include "hex.h"
4 #include "lockfile.h"
5 #include "pack.h"
6 #include "packfile.h"
commit-reach.c
+1
@@ -3,6 +3,7 @@
3 #include "commit.h"
4 #include "commit-graph.h"
5 #include "decorate.h"
6 +#include "hex.h"
7 #include "prio-queue.h"
8 #include "tree.h"
9 #include "ref-filter.h"
commit.c
+1
@@ -2,6 +2,7 @@
2 #include "tag.h"
3 #include "commit.h"
4 #include "commit-graph.h"
5 +#include "hex.h"
6 #include "repository.h"
7 #include "object-store.h"
8 #include "pkt-line.h"
compat/fsmonitor/fsm-ipc-darwin.c
+1
@@ -1,5 +1,6 @@
1 #include "cache.h"
2 #include "config.h"
3 +#include "hex.h"
4 #include "strbuf.h"
5 #include "fsmonitor.h"
6 #include "fsmonitor-ipc.h"
connect.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "cache.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "pkt-line.h"
6 #include "quote.h"
7 #include "refs.h"
connected.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "object-store.h"
4 #include "run-command.h"
5 #include "sigchain.h"
convert.c
+1
@@ -1,5 +1,6 @@
1 #include "cache.h"
2 #include "config.h"
3 +#include "hex.h"
4 #include "object-store.h"
5 #include "attr.h"
6 #include "run-command.h"
delta-islands.c
+1
@@ -4,6 +4,7 @@
4 #include "object.h"
5 #include "blob.h"
6 #include "commit.h"
7 +#include "hex.h"
8 #include "tag.h"
9 #include "tree.h"
10 #include "delta.h"
diagnose.c
+1
@@ -4,6 +4,7 @@
4 #include "archive.h"
5 #include "dir.h"
6 #include "help.h"
7 +#include "hex.h"
8 #include "strvec.h"
9 #include "object-store.h"
10 #include "packfile.h"
diff-lib.c
+1
@@ -6,6 +6,7 @@
6 #include "commit.h"
7 #include "diff.h"
8 #include "diffcore.h"
9 +#include "hex.h"
10 #include "revision.h"
11 #include "cache-tree.h"
12 #include "unpack-trees.h"
diff.c
+1
@@ -9,6 +9,7 @@
9 #include "diff.h"
10 #include "diffcore.h"
11 #include "delta.h"
12 +#include "hex.h"
13 #include "xdiff-interface.h"
14 #include "color.h"
15 #include "attr.h"
entry.c
+1
@@ -2,6 +2,7 @@
2 #include "blob.h"
3 #include "object-store.h"
4 #include "dir.h"
5 +#include "hex.h"
6 #include "streaming.h"
7 #include "submodule.h"
8 #include "progress.h"
fetch-pack.c
+1
@@ -2,6 +2,7 @@
2 #include "alloc.h"
3 #include "repository.h"
4 #include "config.h"
5 +#include "hex.h"
6 #include "lockfile.h"
7 #include "refs.h"
8 #include "pkt-line.h"
fmt-merge-msg.c
+1
@@ -5,6 +5,7 @@
5 #include "object-store.h"
6 #include "diff.h"
7 #include "diff-merges.h"
8 +#include "hex.h"
9 #include "revision.h"
10 #include "tag.h"
11 #include "string-list.h"
fsck.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 +#include "hex.h"
4 #include "object-store.h"
5 #include "repository.h"
6 #include "object.h"
grep.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "config.h"
3 #include "grep.h"
4 +#include "hex.h"
5 #include "object-store.h"
6 #include "userdiff.h"
7 #include "xdiff-interface.h"
http-backend.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "repository.h"
6 #include "refs.h"
7 #include "pkt-line.h"
http-fetch.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "config.h"
3 #include "exec-cmd.h"
4 +#include "hex.h"
5 #include "http.h"
6 #include "walker.h"
7 #include "strvec.h"
http-push.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "repository.h"
4 #include "commit.h"
5 #include "tag.h"
http-walker.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "repository.h"
3 #include "commit.h"
4 +#include "hex.h"
5 #include "walker.h"
6 #include "http.h"
7 #include "list.h"
http.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "git-curl-compat.h"
3 +#include "hex.h"
4 #include "http.h"
5 #include "config.h"
6 #include "pack.h"
line-log.c
+1
@@ -2,6 +2,7 @@
2 #include "alloc.h"
3 #include "line-range.h"
4 #include "cache.h"
5 +#include "hex.h"
6 #include "tag.h"
7 #include "blob.h"
8 #include "tree.h"
list-objects-filter.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "alloc.h"
3 #include "dir.h"
4 +#include "hex.h"
5 #include "tag.h"
6 #include "commit.h"
7 #include "tree.h"
list-objects.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "tag.h"
3 #include "commit.h"
4 +#include "hex.h"
5 #include "tree.h"
6 #include "blob.h"
7 #include "diff.h"
log-tree.c
+1
@@ -2,6 +2,7 @@
2 #include "commit-reach.h"
3 #include "config.h"
4 #include "diff.h"
5 +#include "hex.h"
6 #include "object-store.h"
7 #include "repository.h"
8 #include "tmp-objdir.h"
ls-refs.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "repository.h"
4 #include "refs.h"
5 #include "remote.h"
match-trees.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "tree.h"
4 #include "tree-walk.h"
5 #include "object-store.h"
merge-ort.c
+1
@@ -26,6 +26,7 @@
26 #include "diff.h"
27 #include "diffcore.h"
28 #include "dir.h"
29 +#include "hex.h"
30 #include "entry.h"
31 #include "ll-merge.h"
32 #include "object-store.h"
merge-recursive.c
+1
@@ -18,6 +18,7 @@
18 #include "diff.h"
19 #include "diffcore.h"
20 #include "dir.h"
21 +#include "hex.h"
22 #include "ll-merge.h"
23 #include "lockfile.h"
24 #include "object-store.h"
merge.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "diff.h"
3 #include "diffcore.h"
4 +#include "hex.h"
5 #include "lockfile.h"
6 #include "commit.h"
7 #include "run-command.h"
midx.c
+1
@@ -3,6 +3,7 @@
3 #include "config.h"
4 #include "csum-file.h"
5 #include "dir.h"
6 +#include "hex.h"
7 #include "lockfile.h"
8 #include "packfile.h"
9 #include "object-store.h"
negotiator/skipping.c
+1
@@ -2,6 +2,7 @@
2 #include "skipping.h"
3 #include "../commit.h"
4 #include "../fetch-negotiator.h"
5 +#include "../hex.h"
6 #include "../prio-queue.h"
7 #include "../refs.h"
8 #include "../tag.h"
notes-merge.c
+1
@@ -5,6 +5,7 @@
5 #include "repository.h"
6 #include "diff.h"
7 #include "diffcore.h"
8 +#include "hex.h"
9 #include "xdiff-interface.h"
10 #include "ll-merge.h"
11 #include "dir.h"
notes.c
+1
@@ -1,5 +1,6 @@
1 #include "cache.h"
2 #include "config.h"
3 +#include "hex.h"
4 #include "notes.h"
5 #include "object-store.h"
6 #include "blob.h"
object-file.c
+1
@@ -9,6 +9,7 @@
9 #include "git-compat-util.h"
10 #include "alloc.h"
11 #include "config.h"
12 +#include "hex.h"
13 #include "string-list.h"
14 #include "lockfile.h"
15 #include "delta.h"
object-name.c
+1
@@ -1,5 +1,6 @@
1 #include "cache.h"
2 #include "config.h"
3 +#include "hex.h"
4 #include "tag.h"
5 #include "commit.h"
6 #include "tree.h"
object.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "object.h"
4 #include "replace-object.h"
5 #include "object-store.h"
pack-bitmap-write.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 +#include "hex.h"
4 #include "object-store.h"
5 #include "commit.h"
6 #include "tag.h"
pack-bitmap.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 #include "commit.h"
4 +#include "hex.h"
5 #include "strbuf.h"
6 #include "tag.h"
7 #include "diff.h"
pack-check.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "repository.h"
4 #include "pack.h"
5 #include "pack-revindex.h"
pack-write.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "pack.h"
4 #include "csum-file.h"
5 #include "remote.h"
packfile.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 +#include "hex.h"
4 #include "list.h"
5 #include "pack.h"
6 #include "repository.h"
parallel-checkout.c
+1
@@ -2,6 +2,7 @@
2 #include "alloc.h"
3 #include "config.h"
4 #include "entry.h"
5 +#include "hex.h"
6 #include "parallel-checkout.h"
7 #include "pkt-line.h"
8 #include "progress.h"
patch-ids.c
+1
@@ -2,6 +2,7 @@
2 #include "diff.h"
3 #include "commit.h"
4 #include "hash-lookup.h"
5 +#include "hex.h"
6 #include "patch-ids.h"
7
8 static int patch_id_defined(struct commit *commit)
path.c
+1
@@ -2,6 +2,7 @@
2 * Utilities for paths and pathnames
3 */
4 #include "cache.h"
5 +#include "hex.h"
6 #include "repository.h"
7 #include "strbuf.h"
8 #include "string-list.h"
pkt-line.c
+1
@@ -1,5 +1,6 @@
1 #include "cache.h"
2 #include "pkt-line.h"
3 +#include "hex.h"
4 #include "run-command.h"
5
6 char packet_buffer[LARGE_PACKET_MAX];
pretty.c
+1
@@ -2,6 +2,7 @@
2 #include "alloc.h"
3 #include "config.h"
4 #include "commit.h"
5 +#include "hex.h"
6 #include "utf8.h"
7 #include "diff.h"
8 #include "revision.h"
promisor-remote.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "object-store.h"
4 #include "promisor-remote.h"
5 #include "config.h"
protocol-caps.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "protocol-caps.h"
3 #include "gettext.h"
4 +#include "hex.h"
5 #include "pkt-line.h"
6 #include "strvec.h"
7 #include "hash.h"
reachable.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "refs.h"
4 #include "tag.h"
5 #include "commit.h"
read-cache.c
+1
@@ -8,6 +8,7 @@
8 #include "config.h"
9 #include "diff.h"
10 #include "diffcore.h"
11 +#include "hex.h"
12 #include "tempfile.h"
13 #include "lockfile.h"
14 #include "cache-tree.h"
ref-filter.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 +#include "hex.h"
4 #include "parse-options.h"
5 #include "refs.h"
6 #include "wildmatch.h"
refs.c
+1
@@ -6,6 +6,7 @@
6 #include "alloc.h"
7 #include "config.h"
8 #include "hashmap.h"
9 +#include "hex.h"
10 #include "lockfile.h"
11 #include "iterator.h"
12 #include "refs.h"
refs/debug.c
+1
@@ -1,4 +1,5 @@
1 #include "git-compat-util.h"
2 +#include "hex.h"
3 #include "refs-internal.h"
4 #include "trace.h"
5
refs/files-backend.c
+1
@@ -1,5 +1,6 @@
1 #include "../cache.h"
2 #include "../config.h"
3 +#include "../hex.h"
4 #include "../refs.h"
5 #include "refs-internal.h"
6 #include "ref-cache.h"
refs/packed-backend.c
+1
@@ -1,6 +1,7 @@
1 #include "../git-compat-util.h"
2 #include "../alloc.h"
3 #include "../config.h"
4 +#include "../hex.h"
5 #include "../refs.h"
6 #include "refs-internal.h"
7 #include "packed-backend.h"
refspec.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 +#include "hex.h"
4 #include "strvec.h"
5 #include "refs.h"
6 #include "refspec.h"
remote-curl.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "remote.h"
6 #include "connect.h"
7 #include "strbuf.h"
remote.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "remote.h"
6 #include "urlmatch.h"
7 #include "refs.h"
replace-object.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "oidmap.h"
4 #include "object-store.h"
5 #include "replace-object.h"
rerere.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "lockfile.h"
6 #include "string-list.h"
7 #include "rerere.h"
reset.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "cache-tree.h"
3 +#include "hex.h"
4 #include "lockfile.h"
5 #include "refs.h"
6 #include "reset.h"
revision.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "object-store.h"
6 #include "tag.h"
7 #include "blob.h"
send-pack.c
+1
@@ -1,6 +1,7 @@
1 #include "builtin.h"
2 #include "config.h"
3 #include "commit.h"
4 +#include "hex.h"
5 #include "refs.h"
6 #include "object-store.h"
7 #include "pkt-line.h"
sequencer.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "alloc.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "lockfile.h"
6 #include "dir.h"
7 #include "object-store.h"
server-info.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 #include "dir.h"
4 +#include "hex.h"
5 #include "repository.h"
6 #include "refs.h"
7 #include "object.h"
sha1dc_git.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3
4 #ifdef DC_SHA1_EXTERNAL
5 /*
shallow.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 +#include "hex.h"
4 #include "repository.h"
5 #include "tempfile.h"
6 #include "lockfile.h"
strbuf.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 +#include "hex.h"
4 #include "refs.h"
5 #include "string-list.h"
6 #include "utf8.h"
strvec.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "strvec.h"
3 #include "alloc.h"
4 +#include "hex.h"
5 #include "strbuf.h"
6
7 const char *empty_strvec[] = { NULL };
submodule-config.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "alloc.h"
3 #include "dir.h"
4 +#include "hex.h"
5 #include "repository.h"
6 #include "config.h"
7 #include "submodule-config.h"
submodule.c
+1
@@ -7,6 +7,7 @@
7 #include "dir.h"
8 #include "diff.h"
9 #include "commit.h"
10 +#include "hex.h"
11 #include "revision.h"
12 #include "run-command.h"
13 #include "diffcore.h"
t/helper/test-bloom.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "bloom.h"
3 +#include "hex.h"
4 #include "test-tool.h"
5 #include "commit.h"
6
t/helper/test-cache-tree.c
+1
@@ -1,6 +1,7 @@
1 #define USE_THE_INDEX_VARIABLE
2 #include "test-tool.h"
3 #include "cache.h"
4 +#include "hex.h"
5 #include "tree.h"
6 #include "cache-tree.h"
7 #include "parse-options.h"
t/helper/test-dump-cache-tree.c
+1
@@ -1,6 +1,7 @@
1 #define USE_THE_INDEX_VARIABLE
2 #include "test-tool.h"
3 #include "cache.h"
4 +#include "hex.h"
5 #include "tree.h"
6 #include "cache-tree.h"
7
t/helper/test-dump-split-index.c
+1
@@ -1,6 +1,7 @@
1 #define USE_THE_INDEX_VARIABLE
2 #include "test-tool.h"
3 #include "cache.h"
4 +#include "hex.h"
5 #include "split-index.h"
6 #include "ewah/ewok.h"
7
t/helper/test-dump-untracked-cache.c
+1
@@ -2,6 +2,7 @@
2 #include "test-tool.h"
3 #include "cache.h"
4 #include "dir.h"
5 +#include "hex.h"
6
7 static int compare_untracked(const void *a_, const void *b_)
8 {
t/helper/test-fast-rebase.c
+1
@@ -15,6 +15,7 @@
15
16 #include "cache-tree.h"
17 #include "commit.h"
18 +#include "hex.h"
19 #include "lockfile.h"
20 #include "merge-ort.h"
21 #include "refs.h"
t/helper/test-hash.c
+1
@@ -1,5 +1,6 @@
1 #include "test-tool.h"
2 #include "cache.h"
3 +#include "hex.h"
4
5 int cmd_hash_impl(int ac, const char **av, int algo)
6 {
t/helper/test-match-trees.c
+1
@@ -1,5 +1,6 @@
1 #include "test-tool.h"
2 #include "cache.h"
3 +#include "hex.h"
4 #include "tree.h"
5
6 int cmd__match_trees(int ac, const char **av)
t/helper/test-oid-array.c
+1
@@ -1,5 +1,6 @@
1 #include "test-tool.h"
2 #include "cache.h"
3 +#include "hex.h"
4 #include "oid-array.h"
5
6 static int print_oid(const struct object_id *oid, void *data)
t/helper/test-oidmap.c
+1
@@ -1,5 +1,6 @@
1 #include "test-tool.h"
2 #include "cache.h"
3 +#include "hex.h"
4 #include "oidmap.h"
5 #include "strbuf.h"
6
t/helper/test-oidtree.c
+1
@@ -1,5 +1,6 @@
1 #include "test-tool.h"
2 #include "cache.h"
3 +#include "hex.h"
4 #include "oidtree.h"
5
6 static enum cb_next print_oid(const struct object_id *oid, void *data)
t/helper/test-pack-mtimes.c
+1
@@ -1,5 +1,6 @@
1 #include "git-compat-util.h"
2 #include "test-tool.h"
3 +#include "hex.h"
4 #include "strbuf.h"
5 #include "object-store.h"
6 #include "packfile.h"
t/helper/test-partial-clone.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "test-tool.h"
4 #include "repository.h"
5 #include "object-store.h"
t/helper/test-proc-receive.c
+1
@@ -1,5 +1,6 @@
1 #include "cache.h"
2 #include "connect.h"
3 +#include "hex.h"
4 #include "parse-options.h"
5 #include "pkt-line.h"
6 #include "sigchain.h"
t/helper/test-reach.c
+1
@@ -3,6 +3,7 @@
3 #include "commit.h"
4 #include "commit-reach.h"
5 #include "config.h"
6 +#include "hex.h"
7 #include "parse-options.h"
8 #include "ref-filter.h"
9 #include "string-list.h"
t/helper/test-read-midx.c
+1
@@ -1,5 +1,6 @@
1 #include "test-tool.h"
2 #include "cache.h"
3 +#include "hex.h"
4 #include "midx.h"
5 #include "repository.h"
6 #include "object-store.h"
t/helper/test-ref-store.c
+1
@@ -1,5 +1,6 @@
1 #include "test-tool.h"
2 #include "cache.h"
3 +#include "hex.h"
4 #include "refs.h"
5 #include "worktree.h"
6 #include "object-store.h"
t/helper/test-repository.c
+1
@@ -3,6 +3,7 @@
3 #include "commit-graph.h"
4 #include "commit.h"
5 #include "config.h"
6 +#include "hex.h"
7 #include "object-store.h"
8 #include "object.h"
9 #include "repository.h"
tag.c
+1
@@ -6,6 +6,7 @@
6 #include "blob.h"
7 #include "alloc.h"
8 #include "gpg-interface.h"
9 +#include "hex.h"
10 #include "packfile.h"
11
12 const char *tag_type = "tag";
trace2/tr2_sid.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "trace2/tr2_tbuf.h"
4 #include "trace2/tr2_sid.h"
5
transport-helper.c
+1
@@ -4,6 +4,7 @@
4 #include "run-command.h"
5 #include "commit.h"
6 #include "diff.h"
7 +#include "hex.h"
8 #include "revision.h"
9 #include "remote.h"
10 #include "string-list.h"
transport.c
+1
@@ -1,6 +1,7 @@
1 #include "git-compat-util.h"
2 #include "alloc.h"
3 #include "config.h"
4 +#include "hex.h"
5 #include "transport.h"
6 #include "hook.h"
7 #include "pkt-line.h"
tree-walk.c
+1
@@ -2,6 +2,7 @@
2 #include "tree-walk.h"
3 #include "alloc.h"
4 #include "dir.h"
5 +#include "hex.h"
6 #include "object-store.h"
7 #include "tree.h"
8 #include "pathspec.h"
tree.c
+1
@@ -1,5 +1,6 @@
1 #include "cache.h"
2 #include "cache-tree.h"
3 +#include "hex.h"
4 #include "tree.h"
5 #include "object-store.h"
6 #include "blob.h"
unpack-trees.c
+1
@@ -3,6 +3,7 @@
3 #include "repository.h"
4 #include "config.h"
5 #include "dir.h"
6 +#include "hex.h"
7 #include "tree.h"
8 #include "tree-walk.h"
9 #include "cache-tree.h"
upload-pack.c
+1
@@ -1,5 +1,6 @@
1 #include "cache.h"
2 #include "config.h"
3 +#include "hex.h"
4 #include "refs.h"
5 #include "pkt-line.h"
6 #include "sideband.h"
url.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "url.h"
4
5 int is_urlschemechar(int first_flag, int ch)
urlmatch.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "urlmatch.h"
4
5 #define URL_ALPHA "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
walker.c
+1
@@ -1,4 +1,5 @@
1 #include "cache.h"
2 +#include "hex.h"
3 #include "walker.h"
4 #include "repository.h"
5 #include "object-store.h"
wt-status.c
+1
@@ -4,6 +4,7 @@
4 #include "dir.h"
5 #include "commit.h"
6 #include "diff.h"
7 +#include "hex.h"
8 #include "revision.h"
9 #include "diffcore.h"
10 #include "quote.h"
xdiff-interface.c
+1
@@ -1,5 +1,6 @@
1 #include "cache.h"
2 #include "config.h"
3 +#include "hex.h"
4 #include "object-store.h"
5 #include "xdiff-interface.h"
6 #include "xdiff/xtypes.h"