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>
This commit is contained in:
Elijah Newren 2023-02-24 00:09:27 +00:00 committed by Junio C Hamano
parent b73ecb4811
commit 41771fa435
173 changed files with 172 additions and 1 deletions

View File

@ -3,6 +3,7 @@
#include "color.h"
#include "config.h"
#include "diffcore.h"
#include "hex.h"
#include "revision.h"
#include "refs.h"
#include "string-list.h"

View File

@ -15,6 +15,7 @@
#include "delta.h"
#include "diff.h"
#include "dir.h"
#include "hex.h"
#include "xdiff-interface.h"
#include "ll-merge.h"
#include "lockfile.h"

View File

@ -4,6 +4,7 @@
#include "git-compat-util.h"
#include "alloc.h"
#include "config.h"
#include "hex.h"
#include "tar.h"
#include "archive.h"
#include "object-store.h"

View File

@ -4,6 +4,7 @@
#include "cache.h"
#include "config.h"
#include "archive.h"
#include "hex.h"
#include "streaming.h"
#include "utf8.h"
#include "object-store.h"

View File

@ -1,6 +1,7 @@
#include "git-compat-util.h"
#include "alloc.h"
#include "config.h"
#include "hex.h"
#include "refs.h"
#include "object-store.h"
#include "commit.h"

View File

@ -2,6 +2,7 @@
#include "config.h"
#include "commit.h"
#include "diff.h"
#include "hex.h"
#include "revision.h"
#include "refs.h"
#include "list-objects.h"

View File

@ -5,6 +5,7 @@
#include "mergesort.h"
#include "diff.h"
#include "diffcore.h"
#include "hex.h"
#include "tag.h"
#include "blame.h"
#include "alloc.h"

View File

@ -2,6 +2,7 @@
#include "cache.h"
#include "config.h"
#include "branch.h"
#include "hex.h"
#include "refs.h"
#include "refspec.h"
#include "remote.h"

View File

@ -8,6 +8,7 @@
#include "config.h"
#include "builtin.h"
#include "exec-cmd.h"
#include "hex.h"
#include "parse-options.h"
#include "dir.h"
#include "run-command.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "cache.h"
#include "hex.h"
#include "parse-options.h"
#include "bisect.h"
#include "refs.h"

View File

@ -10,6 +10,7 @@
#include "config.h"
#include "color.h"
#include "builtin.h"
#include "hex.h"
#include "repository.h"
#include "commit.h"
#include "diff.h"

View File

@ -9,6 +9,7 @@
#include "config.h"
#include "builtin.h"
#include "diff.h"
#include "hex.h"
#include "parse-options.h"
#include "userdiff.h"
#include "streaming.h"

View File

@ -9,6 +9,7 @@
#include "config.h"
#include "diff.h"
#include "dir.h"
#include "hex.h"
#include "hook.h"
#include "ll-merge.h"
#include "lockfile.h"

View File

@ -11,6 +11,7 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "config.h"
#include "hex.h"
#include "lockfile.h"
#include "parse-options.h"
#include "fetch-pack.h"

View File

@ -1,6 +1,7 @@
#include "builtin.h"
#include "config.h"
#include "dir.h"
#include "hex.h"
#include "lockfile.h"
#include "parse-options.h"
#include "repository.h"

View File

@ -5,6 +5,7 @@
*/
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "object-store.h"
#include "repository.h"
#include "commit.h"

View File

@ -1,6 +1,7 @@
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "lockfile.h"
#include "commit.h"
#include "tag.h"

View File

@ -3,6 +3,7 @@
#include "config.h"
#include "diff.h"
#include "commit.h"
#include "hex.h"
#include "log-tree.h"
#include "builtin.h"
#include "submodule.h"

View File

@ -17,6 +17,7 @@
#include "builtin.h"
#include "run-command.h"
#include "exec-cmd.h"
#include "hex.h"
#include "parse-options.h"
#include "strvec.h"
#include "strbuf.h"

View File

@ -6,6 +6,7 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "refs.h"
#include "refspec.h"
#include "object-store.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "cache.h"
#include "hex.h"
#include "repository.h"
#include "config.h"
#include "lockfile.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "alloc.h"
#include "hex.h"
#include "pkt-line.h"
#include "fetch-pack.h"
#include "remote.h"

View File

@ -3,6 +3,7 @@
*/
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "repository.h"
#include "refs.h"
#include "refspec.h"

View File

@ -1,6 +1,7 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "cache.h"
#include "hex.h"
#include "repository.h"
#include "config.h"
#include "commit.h"

View File

@ -11,6 +11,7 @@
*/
#include "builtin.h"
#include "hex.h"
#include "repository.h"
#include "config.h"
#include "tempfile.h"

View File

@ -5,6 +5,7 @@
*/
#include "cache.h"
#include "alloc.h"
#include "hex.h"
#include "repository.h"
#include "config.h"
#include "blob.h"

View File

@ -6,6 +6,7 @@
*/
#include "builtin.h"
#include "config.h"
#include "hex.h"
#include "object-store.h"
#include "blob.h"
#include "quote.h"

View File

@ -2,6 +2,7 @@
#include "alloc.h"
#include "config.h"
#include "delta.h"
#include "hex.h"
#include "pack.h"
#include "csum-file.h"
#include "blob.h"

View File

@ -7,6 +7,7 @@
#include "git-compat-util.h"
#include "alloc.h"
#include "config.h"
#include "hex.h"
#include "refs.h"
#include "object-store.h"
#include "color.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "cache.h"
#include "hex.h"
#include "transport.h"
#include "ref-filter.h"
#include "remote.h"

View File

@ -5,6 +5,7 @@
*/
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "object-store.h"
#include "blob.h"
#include "tree.h"

View File

@ -2,6 +2,7 @@
#include "cache.h"
#include "config.h"
#include "commit.h"
#include "hex.h"
#include "refs.h"
#include "diff.h"
#include "revision.h"

View File

@ -1,5 +1,6 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "hex.h"
#include "run-command.h"
static const char *pgm;

View File

@ -3,6 +3,7 @@
#include "tree-walk.h"
#include "xdiff-interface.h"
#include "help.h"
#include "hex.h"
#include "commit.h"
#include "commit-reach.h"
#include "merge-ort.h"

View File

@ -10,6 +10,7 @@
#include "cache.h"
#include "alloc.h"
#include "config.h"
#include "hex.h"
#include "parse-options.h"
#include "builtin.h"
#include "lockfile.h"

View File

@ -1,4 +1,5 @@
#include "builtin.h"
#include "hex.h"
#include "parse-options.h"
#include "tag.h"
#include "replace-object.h"

View File

@ -5,6 +5,7 @@
*/
#include "builtin.h"
#include "alloc.h"
#include "hex.h"
#include "quote.h"
#include "tree.h"
#include "parse-options.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "alloc.h"
#include "hex.h"
#include "repository.h"
#include "config.h"
#include "commit.h"

View File

@ -10,6 +10,7 @@
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "hex.h"
#include "notes.h"
#include "object-store.h"
#include "repository.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "alloc.h"
#include "hex.h"
#include "repository.h"
#include "config.h"
#include "attr.h"

View File

@ -7,6 +7,7 @@
*/
#include "builtin.h"
#include "hex.h"
#include "repository.h"
#include "packfile.h"
#include "object-store.h"

View File

@ -2,6 +2,7 @@
#include "builtin.h"
#include "config.h"
#include "diff.h"
#include "hex.h"
#include "parse-options.h"
static void flush_current_id(int patchlen, struct object_id *id, struct object_id *result)

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "commit.h"
#include "diff.h"
#include "hex.h"
#include "revision.h"
#include "builtin.h"
#include "reachable.h"

View File

@ -9,6 +9,7 @@
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "hex.h"
#include "parse-options.h"
#include "exec-cmd.h"
#include "run-command.h"

View File

@ -7,6 +7,7 @@
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "lockfile.h"
#include "object.h"
#include "tree.h"

View File

@ -6,6 +6,7 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "hex.h"
#include "run-command.h"
#include "exec-cmd.h"
#include "strvec.h"

View File

@ -1,6 +1,7 @@
#include "builtin.h"
#include "repository.h"
#include "config.h"
#include "hex.h"
#include "lockfile.h"
#include "pack.h"
#include "refs.h"

View File

@ -2,6 +2,7 @@
#include "alloc.h"
#include "config.h"
#include "dir.h"
#include "hex.h"
#include "parse-options.h"
#include "run-command.h"
#include "sigchain.h"

View File

@ -11,6 +11,7 @@
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "hex.h"
#include "refs.h"
#include "parse-options.h"
#include "run-command.h"

View File

@ -10,6 +10,7 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "config.h"
#include "hex.h"
#include "lockfile.h"
#include "tag.h"
#include "object.h"

View File

@ -2,6 +2,7 @@
#include "config.h"
#include "commit.h"
#include "diff.h"
#include "hex.h"
#include "revision.h"
#include "list-objects.h"
#include "list-objects-filter.h"

View File

@ -8,6 +8,7 @@
#include "alloc.h"
#include "config.h"
#include "commit.h"
#include "hex.h"
#include "refs.h"
#include "quote.h"
#include "builtin.h"

View File

@ -1,6 +1,7 @@
#include "builtin.h"
#include "config.h"
#include "commit.h"
#include "hex.h"
#include "refs.h"
#include "pkt-line.h"
#include "sideband.h"

View File

@ -1,5 +1,6 @@
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "pretty.h"
#include "refs.h"
#include "builtin.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "cache.h"
#include "hex.h"
#include "pack.h"
#include "parse-options.h"

View File

@ -1,6 +1,7 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "refs.h"
#include "object-store.h"
#include "object.h"

View File

@ -1,6 +1,7 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "config.h"
#include "hex.h"
#include "parse-options.h"
#include "refs.h"
#include "lockfile.h"

View File

@ -1,6 +1,7 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "alloc.h"
#include "hex.h"
#include "repository.h"
#include "cache.h"
#include "config.h"

View File

@ -9,6 +9,7 @@
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "hex.h"
#include "refs.h"
#include "object-store.h"
#include "tag.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "config.h"
#include "hex.h"
#include "object-store.h"
static char *create_temp_file(struct object_id *oid)

View File

@ -2,6 +2,7 @@
#include "cache.h"
#include "bulk-checkin.h"
#include "config.h"
#include "hex.h"
#include "object-store.h"
#include "object.h"
#include "delta.h"

View File

@ -7,6 +7,7 @@
#include "cache.h"
#include "bulk-checkin.h"
#include "config.h"
#include "hex.h"
#include "lockfile.h"
#include "quote.h"
#include "cache-tree.h"

View File

@ -3,6 +3,7 @@
#include "config.h"
#include "builtin.h"
#include "dir.h"
#include "hex.h"
#include "parse-options.h"
#include "strvec.h"
#include "branch.h"

View File

@ -7,6 +7,7 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "tree.h"
#include "cache-tree.h"
#include "parse-options.h"

View File

@ -4,6 +4,7 @@
#include "git-compat-util.h"
#include "alloc.h"
#include "bulk-checkin.h"
#include "hex.h"
#include "lockfile.h"
#include "repository.h"
#include "csum-file.h"

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "lockfile.h"
#include "bundle.h"
#include "hex.h"
#include "object-store.h"
#include "repository.h"
#include "object.h"

View File

@ -1,5 +1,6 @@
#include "git-compat-util.h"
#include "alloc.h"
#include "hex.h"
#include "lockfile.h"
#include "tree.h"
#include "tree-walk.h"

View File

@ -13,7 +13,6 @@
#include "string-list.h"
#include "pack-revindex.h"
#include "hash.h"
#include "hex.h"
#include "path.h"
#include "oid-array.h"
#include "repository.h"

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "config.h"
#include "color.h"
#include "hex.h"
static int git_use_color_default = GIT_COLOR_AUTO;
int color_stdout_is_tty = -1;

View File

@ -4,6 +4,7 @@
#include "blob.h"
#include "diff.h"
#include "diffcore.h"
#include "hex.h"
#include "quote.h"
#include "xdiff-interface.h"
#include "xdiff/xmacros.h"

View File

@ -1,5 +1,6 @@
#include "git-compat-util.h"
#include "config.h"
#include "hex.h"
#include "lockfile.h"
#include "pack.h"
#include "packfile.h"

View File

@ -3,6 +3,7 @@
#include "commit.h"
#include "commit-graph.h"
#include "decorate.h"
#include "hex.h"
#include "prio-queue.h"
#include "tree.h"
#include "ref-filter.h"

View File

@ -2,6 +2,7 @@
#include "tag.h"
#include "commit.h"
#include "commit-graph.h"
#include "hex.h"
#include "repository.h"
#include "object-store.h"
#include "pkt-line.h"

View File

@ -1,5 +1,6 @@
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "strbuf.h"
#include "fsmonitor.h"
#include "fsmonitor-ipc.h"

View File

@ -1,6 +1,7 @@
#include "git-compat-util.h"
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "pkt-line.h"
#include "quote.h"
#include "refs.h"

View File

@ -1,4 +1,5 @@
#include "cache.h"
#include "hex.h"
#include "object-store.h"
#include "run-command.h"
#include "sigchain.h"

View File

@ -1,5 +1,6 @@
#include "cache.h"
#include "config.h"
#include "hex.h"
#include "object-store.h"
#include "attr.h"
#include "run-command.h"

View File

@ -4,6 +4,7 @@
#include "object.h"
#include "blob.h"
#include "commit.h"
#include "hex.h"
#include "tag.h"
#include "tree.h"
#include "delta.h"

View File

@ -4,6 +4,7 @@
#include "archive.h"
#include "dir.h"
#include "help.h"
#include "hex.h"
#include "strvec.h"
#include "object-store.h"
#include "packfile.h"

View File

@ -6,6 +6,7 @@
#include "commit.h"
#include "diff.h"
#include "diffcore.h"
#include "hex.h"
#include "revision.h"
#include "cache-tree.h"
#include "unpack-trees.h"

1
diff.c
View File

@ -9,6 +9,7 @@
#include "diff.h"
#include "diffcore.h"
#include "delta.h"
#include "hex.h"
#include "xdiff-interface.h"
#include "color.h"
#include "attr.h"

View File

@ -2,6 +2,7 @@
#include "blob.h"
#include "object-store.h"
#include "dir.h"
#include "hex.h"
#include "streaming.h"
#include "submodule.h"
#include "progress.h"

View File

@ -2,6 +2,7 @@
#include "alloc.h"
#include "repository.h"
#include "config.h"
#include "hex.h"
#include "lockfile.h"
#include "refs.h"
#include "pkt-line.h"

View File

@ -5,6 +5,7 @@
#include "object-store.h"
#include "diff.h"
#include "diff-merges.h"
#include "hex.h"
#include "revision.h"
#include "tag.h"
#include "string-list.h"

1
fsck.c
View File

@ -1,5 +1,6 @@
#include "git-compat-util.h"
#include "alloc.h"
#include "hex.h"
#include "object-store.h"
#include "repository.h"
#include "object.h"

1
grep.c
View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "config.h"
#include "grep.h"
#include "hex.h"
#include "object-store.h"
#include "userdiff.h"
#include "xdiff-interface.h"

View File

@ -1,6 +1,7 @@
#include "git-compat-util.h"
#include "alloc.h"
#include "config.h"
#include "hex.h"
#include "repository.h"
#include "refs.h"
#include "pkt-line.h"

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "config.h"
#include "exec-cmd.h"
#include "hex.h"
#include "http.h"
#include "walker.h"
#include "strvec.h"

View File

@ -1,4 +1,5 @@
#include "cache.h"
#include "hex.h"
#include "repository.h"
#include "commit.h"
#include "tag.h"

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "repository.h"
#include "commit.h"
#include "hex.h"
#include "walker.h"
#include "http.h"
#include "list.h"

1
http.c
View File

@ -1,5 +1,6 @@
#include "git-compat-util.h"
#include "git-curl-compat.h"
#include "hex.h"
#include "http.h"
#include "config.h"
#include "pack.h"

View File

@ -2,6 +2,7 @@
#include "alloc.h"
#include "line-range.h"
#include "cache.h"
#include "hex.h"
#include "tag.h"
#include "blob.h"
#include "tree.h"

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "alloc.h"
#include "dir.h"
#include "hex.h"
#include "tag.h"
#include "commit.h"
#include "tree.h"

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "tag.h"
#include "commit.h"
#include "hex.h"
#include "tree.h"
#include "blob.h"
#include "diff.h"

View File

@ -2,6 +2,7 @@
#include "commit-reach.h"
#include "config.h"
#include "diff.h"
#include "hex.h"
#include "object-store.h"
#include "repository.h"
#include "tmp-objdir.h"

View File

@ -1,4 +1,5 @@
#include "cache.h"
#include "hex.h"
#include "repository.h"
#include "refs.h"
#include "remote.h"

View File

@ -1,4 +1,5 @@
#include "cache.h"
#include "hex.h"
#include "tree.h"
#include "tree-walk.h"
#include "object-store.h"

View File

@ -26,6 +26,7 @@
#include "diff.h"
#include "diffcore.h"
#include "dir.h"
#include "hex.h"
#include "entry.h"
#include "ll-merge.h"
#include "object-store.h"

View File

@ -18,6 +18,7 @@
#include "diff.h"
#include "diffcore.h"
#include "dir.h"
#include "hex.h"
#include "ll-merge.h"
#include "lockfile.h"
#include "object-store.h"

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "diff.h"
#include "diffcore.h"
#include "hex.h"
#include "lockfile.h"
#include "commit.h"
#include "run-command.h"

Some files were not shown because too many files have changed in this diff Show More