cache.h: remove this no-longer-used header

Since this header showed up in some places besides just #include
statements, update/clean-up/remove those other places as well.

Note that compat/fsmonitor/fsm-path-utils-darwin.c previously got
away with violating the rule that all files must start with an include
of git-compat-util.h (or a short-list of alternate headers that happen
to include it first).  This change exposed the violation and caused it
to stop building correctly; fix it by having it include
git-compat-util.h first, as per policy.

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-05-16 06:33:57 +00:00 committed by Junio C Hamano
parent 08c46a499a
commit bc5c5ec044
150 changed files with 100 additions and 206 deletions

View File

@ -444,7 +444,7 @@ For C programs:
- The first #include in C files, except in platform specific compat/
implementations and sha1dc/, must be either "git-compat-util.h" or
one of the approved headers that includes it first for you. (The
approved headers currently include "cache.h", "builtin.h",
approved headers currently include "builtin.h",
"t/helper/test-tool.h", "xdiff/xinclude.h", or
"reftable/system.h"). You do not have to include more than one of
these.

View File

@ -124,7 +124,7 @@ parameters provided by the user over the CLI.
`nr` represents the number of `rev_cmdline_entry` present in the array.
`alloc` is used by the `ALLOC_GROW` macro. Check `cache.h` - this variable is
`alloc` is used by the `ALLOC_GROW` macro. Check `alloc.h` - this variable is
used to track the allocated size of the list.
Per entry, we find:

View File

@ -4129,13 +4129,11 @@ Note that terminology has changed since that revision. For example, the
README in that revision uses the word "changeset" to describe what we
now call a <<def_commit_object,commit>>.
Also, we do not call it "cache" any more, but rather "index"; however, the
file is still called `cache.h`. Remark: Not much reason to change it now,
especially since there is no good single name for it anyway, because it is
basically _the_ header file which is included by _all_ of Git's C sources.
Also, we do not call it "cache" any more, but rather "index"; however,
the file is still called `read-cache.h`.
If you grasp the ideas in that initial commit, you should check out a
more recent version and skim `cache.h`, `object.h` and `commit.h`.
more recent version and skim `read-cache-ll.h`, `object.h` and `commit.h`.
In the early days, Git (in the tradition of UNIX) was a bunch of programs
which were extremely simple, and which you used in scripts, piping the
@ -4146,11 +4144,11 @@ many of these parts have become builtins, and some of the core has been
and to avoid code duplication.
By now, you know what the index is (and find the corresponding data
structures in `cache.h`), and that there are just a couple of object types
(blobs, trees, commits and tags) which inherit their common structure from
`struct object`, which is their first member (and thus, you can cast e.g.
`(struct object *)commit` to achieve the _same_ as `&commit->object`, i.e.
get at the object name and flags).
structures in `read-cache-ll.h`), and that there are just a couple of
object types (blobs, trees, commits and tags) which inherit their
common structure from `struct object`, which is their first member
(and thus, you can cast e.g. `(struct object *)commit` to achieve the
_same_ as `&commit->object`, i.e. get at the object name and flags).
Now is a good point to take a break to let this information sink in.

View File

@ -1952,7 +1952,7 @@ endif
BASIC_CFLAGS += \
-DSHA1DC_NO_STANDARD_INCLUDES \
-DSHA1DC_INIT_SAFE_HASH_DEFAULT=0 \
-DSHA1DC_CUSTOM_INCLUDE_SHA1_C="\"cache.h\"" \
-DSHA1DC_CUSTOM_INCLUDE_SHA1_C="\"git-compat-util.h\"" \
-DSHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C="\"git-compat-util.h\""
endif
endif

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "add-interactive.h"
#include "color.h"
#include "config.h"

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "add-interactive.h"
#include "advice.h"
#include "alloc.h"

View File

@ -7,7 +7,7 @@
*
*/
#include "cache.h"
#include "git-compat-util.h"
#include "abspath.h"
#include "alloc.h"
#include "base85.h"

2
attr.c
View File

@ -6,7 +6,7 @@
* an insanely large number of attributes.
*/
#include "cache.h"
#include "git-compat-util.h"
#include "alloc.h"
#include "config.h"
#include "environment.h"

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "refs.h"
#include "object-store.h"
#include "cache-tree.h"

View File

@ -3,7 +3,6 @@
#include "git-compat-util.h"
#include "strbuf.h"
#include "cache.h"
#include "commit.h"
/*

View File

@ -4,10 +4,9 @@
* Copyright (C) 2006 Linus Torvalds
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "advice.h"
#include "config.h"
#include "builtin.h"
#include "lockfile.h"
#include "editor.h"
#include "dir.h"

View File

@ -4,11 +4,10 @@
* Based on git-am.sh by Junio C Hamano.
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "abspath.h"
#include "advice.h"
#include "config.h"
#include "builtin.h"
#include "editor.h"
#include "environment.h"
#include "exec-cmd.h"

View File

@ -1,4 +1,3 @@
#include "cache.h"
#include "builtin.h"
#include "gettext.h"
#include "parse-options.h"

View File

@ -2,7 +2,6 @@
* Copyright (c) 2006 Franck Bui-Huu
* Copyright (c) 2006 Rene Scharfe
*/
#include "cache.h"
#include "builtin.h"
#include "archive.h"
#include "gettext.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "copy.h"
#include "environment.h"
#include "gettext.h"

View File

@ -5,14 +5,13 @@
* Based on git-branch.sh by Junio C Hamano.
*/
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "color.h"
#include "editor.h"
#include "environment.h"
#include "refs.h"
#include "commit.h"
#include "builtin.h"
#include "gettext.h"
#include "object-name.h"
#include "remote.h"

View File

@ -6,7 +6,6 @@
#include "parse-options.h"
#include "pkt-line.h"
#include "repository.h"
#include "cache.h"
#include "bundle.h"
/*

View File

@ -4,11 +4,10 @@
* Copyright (C) Linus Torvalds, 2005
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "alloc.h"
#include "config.h"
#include "convert.h"
#include "builtin.h"
#include "diff.h"
#include "environment.h"
#include "gettext.h"

View File

@ -1,6 +1,5 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "attr.h"
#include "environment.h"

View File

@ -1,6 +1,5 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "dir.h"
#include "gettext.h"

View File

@ -2,9 +2,8 @@
* GIT - The information manager from hell
*/
#include "cache.h"
#include "refs.h"
#include "builtin.h"
#include "refs.h"
#include "setup.h"
#include "strbuf.h"

View File

@ -9,7 +9,6 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "abspath.h"
#include "cache.h"
#include "config.h"
#include "dir.h"
#include "gettext.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "strbuf.h"

View File

@ -3,7 +3,7 @@
*
* Copyright (C) Linus Torvalds, 2005
*/
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"
@ -12,7 +12,6 @@
#include "repository.h"
#include "commit.h"
#include "tree.h"
#include "builtin.h"
#include "utf8.h"
#include "gpg-interface.h"
#include "parse-options.h"

View File

@ -6,7 +6,7 @@
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "advice.h"
#include "config.h"
#include "lockfile.h"
@ -15,7 +15,6 @@
#include "dir.h"
#include "editor.h"
#include "environment.h"
#include "builtin.h"
#include "diff.h"
#include "diffcore.h"
#include "commit.h"

View File

@ -4,13 +4,12 @@
* Copyright (c) 2006 Junio C Hamano
*/
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "dir.h"
#include "environment.h"
#include "gettext.h"
#include "repository.h"
#include "builtin.h"
#include "parse-options.h"
#include "quote.h"
#include "packfile.h"

View File

@ -1,5 +1,5 @@
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
@ -9,7 +9,6 @@
#include "tag.h"
#include "blob.h"
#include "refs.h"
#include "builtin.h"
#include "exec-cmd.h"
#include "object-name.h"
#include "parse-options.h"

View File

@ -3,14 +3,13 @@
*
* Copyright (C) Linus Torvalds, 2005
*/
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "diff.h"
#include "diff-merges.h"
#include "commit.h"
#include "preload-index.h"
#include "revision.h"
#include "builtin.h"
#include "submodule.h"
static const char diff_files_usage[] =

View File

@ -1,11 +1,10 @@
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "diff.h"
#include "diff-merges.h"
#include "commit.h"
#include "preload-index.h"
#include "revision.h"
#include "builtin.h"
#include "setup.h"
#include "submodule.h"

View File

@ -1,12 +1,11 @@
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "diff.h"
#include "commit.h"
#include "gettext.h"
#include "hex.h"
#include "log-tree.h"
#include "builtin.h"
#include "submodule.h"
#include "read-cache-ll.h"
#include "repository.h"

View File

@ -4,7 +4,7 @@
* Copyright (c) 2006 Junio C Hamano
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "ewah/ewok.h"
#include "lockfile.h"
@ -20,7 +20,6 @@
#include "read-cache-ll.h"
#include "revision.h"
#include "log-tree.h"
#include "builtin.h"
#include "setup.h"
#include "submodule.h"
#include "oid-array.h"

View File

@ -12,11 +12,10 @@
* Copyright (C) 2016 Johannes Schindelin
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "abspath.h"
#include "config.h"
#include "copy.h"
#include "builtin.h"
#include "run-command.h"
#include "environment.h"
#include "exec-cmd.h"

View File

@ -4,7 +4,6 @@
* Copyright (C) 2007 Johannes E. Schindelin
*/
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"

View File

@ -1,6 +1,5 @@
#include "builtin.h"
#include "abspath.h"
#include "cache.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"

View File

@ -1,7 +1,7 @@
/*
* "git fetch"
*/
#include "cache.h"
#include "builtin.h"
#include "advice.h"
#include "config.h"
#include "gettext.h"
@ -15,7 +15,6 @@
#include "oidset.h"
#include "oid-array.h"
#include "commit.h"
#include "builtin.h"
#include "string-list.h"
#include "remote.h"
#include "transport.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "refs.h"

View File

@ -1,6 +1,5 @@
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "parse-options.h"
#include "path.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "gettext.h"
#include "hex.h"
#include "repository.h"

View File

@ -1,10 +1,9 @@
/*
* Copyright (c) 2005, 2006 Rene Scharfe
*/
#include "cache.h"
#include "builtin.h"
#include "commit.h"
#include "tar.h"
#include "builtin.h"
#include "quote.h"
#include "wrapper.h"

View File

@ -3,7 +3,7 @@
*
* Copyright (c) 2006 Junio C Hamano
*/
#include "cache.h"
#include "builtin.h"
#include "alloc.h"
#include "gettext.h"
#include "hex.h"
@ -14,7 +14,6 @@
#include "commit.h"
#include "tag.h"
#include "tree-walk.h"
#include "builtin.h"
#include "parse-options.h"
#include "string-list.h"
#include "run-command.h"

View File

@ -1,9 +1,8 @@
/*
* Builtin help command
*/
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "config.h"
#include "exec-cmd.h"
#include "gettext.h"
#include "pager.h"

View File

@ -1,4 +1,3 @@
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "gettext.h"

View File

@ -3,12 +3,11 @@
*
* Copyright (C) Linus Torvalds, 2005
*/
#include "cache.h"
#include "builtin.h"
#include "abspath.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "builtin.h"
#include "object-file.h"
#include "parse-options.h"
#include "path.h"

View File

@ -5,7 +5,6 @@
*
*/
#include "cache.h"
#include "builtin.h"
#include "gettext.h"
#include "parse-options.h"

View File

@ -5,13 +5,12 @@
*
* Copyright (C) Linus Torvalds, 2005
*/
#include "cache.h"
#include "builtin.h"
#include "repository.h"
#include "config.h"
#include "convert.h"
#include "quote.h"
#include "dir.h"
#include "builtin.h"
#include "gettext.h"
#include "object-name.h"
#include "strbuf.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "gettext.h"
#include "hex.h"
#include "transport.h"

View File

@ -3,7 +3,7 @@
*
* Copyright (C) Linus Torvalds, 2005
*/
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"
@ -13,7 +13,6 @@
#include "tree.h"
#include "commit.h"
#include "quote.h"
#include "builtin.h"
#include "parse-options.h"
#include "pathspec.h"

View File

@ -2,9 +2,8 @@
* Another stupid program, this one parsing the headers of an
* email to figure out authorship and subject
*/
#include "cache.h"
#include "abspath.h"
#include "builtin.h"
#include "abspath.h"
#include "environment.h"
#include "gettext.h"
#include "utf8.h"

View File

@ -4,7 +4,6 @@
* It just splits a mbox into a list of files: "0001" "0002" ..
* so you can process them further from there.
*/
#include "cache.h"
#include "builtin.h"
#include "gettext.h"
#include "string-list.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "commit.h"
#include "gettext.h"

View File

@ -1,6 +1,5 @@
#include "builtin.h"
#include "abspath.h"
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "setup.h"

View File

@ -1,4 +1,3 @@
#include "cache.h"
#include "builtin.h"
#include "advice.h"
#include "commit.h"

View File

@ -7,7 +7,7 @@
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "abspath.h"
#include "advice.h"
#include "alloc.h"
@ -18,7 +18,6 @@
#include "hex.h"
#include "object-name.h"
#include "parse-options.h"
#include "builtin.h"
#include "lockfile.h"
#include "run-command.h"
#include "hook.h"

View File

@ -1,6 +1,5 @@
#include "builtin.h"
#include "abspath.h"
#include "cache.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"

View File

@ -7,9 +7,8 @@
* and builtin/tag.c by Kristian Høgsberg and Carlos Rica.
*/
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "config.h"
#include "editor.h"
#include "gettext.h"
#include "hex.h"

View File

@ -1,4 +1,3 @@
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "diff.h"

View File

@ -1,11 +1,10 @@
#include "cache.h"
#include "builtin.h"
#include "commit.h"
#include "diff.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "revision.h"
#include "builtin.h"
#include "reachable.h"
#include "parse-options.h"
#include "progress.h"

View File

@ -6,10 +6,9 @@
* Fetch one or more remote refs and merge it/them into the current HEAD.
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "advice.h"
#include "config.h"
#include "builtin.h"
#include "gettext.h"
#include "hex.h"
#include "merge.h"

View File

@ -1,7 +1,7 @@
/*
* "git push"
*/
#include "cache.h"
#include "builtin.h"
#include "advice.h"
#include "branch.h"
#include "config.h"
@ -10,7 +10,6 @@
#include "refs.h"
#include "refspec.h"
#include "run-command.h"
#include "builtin.h"
#include "remote.h"
#include "transport.h"
#include "parse-options.h"

View File

@ -1,4 +1,3 @@
#include "cache.h"
#include "builtin.h"
#include "gettext.h"
#include "object-name.h"

View File

@ -5,7 +5,7 @@
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"
@ -17,7 +17,6 @@
#include "cache-tree.h"
#include "unpack-trees.h"
#include "dir.h"
#include "builtin.h"
#include "parse-options.h"
#include "repository.h"
#include "resolve-undo.h"

View File

@ -8,9 +8,8 @@
* git-tag.sh and mktag.c by Linus Torvalds.
*/
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "config.h"
#include "editor.h"
#include "environment.h"
#include "gettext.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "dir.h"
#include "gettext.h"

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "commit.h"
#include "diff.h"
@ -15,7 +15,6 @@
#include "object-store.h"
#include "pack.h"
#include "pack-bitmap.h"
#include "builtin.h"
#include "log-tree.h"
#include "graph.h"
#include "bisect.h"

View File

@ -4,7 +4,7 @@
* Copyright (C) Linus Torvalds, 2005
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "abspath.h"
#include "alloc.h"
#include "config.h"
@ -14,7 +14,6 @@
#include "hex.h"
#include "refs.h"
#include "quote.h"
#include "builtin.h"
#include "object-name.h"
#include "parse-options.h"
#include "diff.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "commit.h"
#include "diff.h"

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
@ -6,7 +6,6 @@
#include "hex.h"
#include "pretty.h"
#include "refs.h"
#include "builtin.h"
#include "color.h"
#include "strvec.h"
#include "object-name.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "gettext.h"
#include "hash.h"
#include "hex.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "dir.h"
#include "environment.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "parse-options.h"

View File

@ -6,7 +6,6 @@
#include "gettext.h"
#include "hex.h"
#include "repository.h"
#include "cache.h"
#include "config.h"
#include "parse-options.h"
#include "quote.h"

View File

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

View File

@ -6,10 +6,9 @@
* Based on git-tag.sh and mktag.c by Linus Torvalds.
*/
#include "cache.h"
#include "builtin.h"
#include "advice.h"
#include "config.h"
#include "builtin.h"
#include "editor.h"
#include "environment.h"
#include "gettext.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "bulk-checkin.h"
#include "config.h"
#include "environment.h"

View File

@ -4,7 +4,7 @@
* Copyright (C) Linus Torvalds, 2005
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "builtin.h"
#include "bulk-checkin.h"
#include "config.h"
#include "environment.h"
@ -15,7 +15,6 @@
#include "quote.h"
#include "cache-tree.h"
#include "tree-walk.h"
#include "builtin.h"
#include "object-file.h"
#include "refs.h"
#include "resolve-undo.h"

View File

@ -1,9 +1,8 @@
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "hash.h"
#include "refs.h"
#include "builtin.h"
#include "object-name.h"
#include "parse-options.h"
#include "quote.h"

View File

@ -1,6 +1,5 @@
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "parse-options.h"
#include "server-info.h"

View File

@ -1,7 +1,6 @@
/*
* Copyright (c) 2006 Franck Bui-Huu
*/
#include "cache.h"
#include "builtin.h"
#include "archive.h"
#include "pkt-line.h"

View File

@ -1,4 +1,3 @@
#include "cache.h"
#include "builtin.h"
#include "exec-cmd.h"
#include "gettext.h"

View File

@ -5,9 +5,8 @@
*
* Based on git-verify-tag
*/
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "object-name.h"
#include "object-store.h"

View File

@ -1,5 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "run-command.h"

View File

@ -5,9 +5,8 @@
*
* Based on git-verify-tag.sh
*/
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "tag.h"
#include "run-command.h"

View File

@ -1,9 +1,8 @@
#include "cache.h"
#include "builtin.h"
#include "abspath.h"
#include "checkout.h"
#include "config.h"
#include "copy.h"
#include "builtin.h"
#include "dir.h"
#include "environment.h"
#include "gettext.h"

View File

@ -5,7 +5,6 @@
*/
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "alloc.h"
#include "environment.h"
#include "hex.h"

View File

@ -1,6 +0,0 @@
#ifndef CACHE_H
#define CACHE_H
#include "git-compat-util.h"
#endif /* CACHE_H */

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "config.h"
#include "fsmonitor.h"
#include "fsm-health.h"

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "config.h"
#include "fsmonitor.h"
#include "fsm-listen.h"

View File

@ -1,3 +1,4 @@
#include "git-compat-util.h"
#include "fsmonitor.h"
#include "fsmonitor-path-utils.h"
#include "gettext.h"

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "fsmonitor.h"
#include "fsmonitor-path-utils.h"
#include "gettext.h"

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "config.h"
#include "repository.h"
#include "fsmonitor.h"

View File

@ -6,7 +6,6 @@
#include <wchar.h>
#include "../strbuf.h"
#include "../run-command.h"
#include "../cache.h"
#include "../abspath.h"
#include "../alloc.h"
#include "win32/lazyload.h"

View File

@ -5,7 +5,7 @@
#define PRECOMPOSE_UNICODE_C
#include "cache.h"
#include "git-compat-util.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "hash-ll.h"
int git_SHA1_Update_Chunked(platform_SHA_CTX *c, const void *data, size_t len)

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "abspath.h"
#include "gettext.h"
#include "simple-ipc.h"

View File

@ -1,4 +1,4 @@
#include "../../cache.h"
#include "../../git-compat-util.h"
#include "../../json-writer.h"
#include "../../repository.h"
#include "../../trace2.h"

View File

@ -227,7 +227,7 @@ add_compile_definitions(GIT_HOST_CPU="${CMAKE_SYSTEM_PROCESSOR}")
add_compile_definitions(SHA256_BLK INTERNAL_QSORT RUNTIME_PREFIX)
add_compile_definitions(NO_OPENSSL SHA1_DC SHA1DC_NO_STANDARD_INCLUDES
SHA1DC_INIT_SAFE_HASH_DEFAULT=0
SHA1DC_CUSTOM_INCLUDE_SHA1_C="cache.h"
SHA1DC_CUSTOM_INCLUDE_SHA1_C="git-compat-util.h"
SHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C="git-compat-util.h" )
list(APPEND compat_SOURCES sha1dc_git.c sha1dc/sha1.c sha1dc/ubc_check.c block-sha1/sha1.c sha256/block/sha256.c compat/qsort_s.c)

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "advice.h"
#include "config.h"
#include "convert.h"

View File

@ -1,7 +1,7 @@
/*
* Copyright (C) 2005 Junio C Hamano
*/
#include "cache.h"
#include "git-compat-util.h"
#include "quote.h"
#include "commit.h"
#include "diff.h"

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