diff options
author | Elijah Newren <newren@gmail.com> | 2023-02-24 01:09:25 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 02:25:28 +0100 |
commit | 41227cb138c91fbd369ac6ee4877f253b39260cc (patch) | |
tree | 197f151f5fe36292f68ab92735ff355d3e544df5 /submodule-config.h | |
parent | alloc.h: move ALLOC_GROW() functions from cache.h (diff) | |
download | git-41227cb138c91fbd369ac6ee4877f253b39260cc.tar.xz git-41227cb138c91fbd369ac6ee4877f253b39260cc.zip |
hash.h: move some oid-related declarations from cache.h
These defines and enum are all oid-related and as such seem to make
more sense being included in hash.h. Further, moving them there
allows us to remove some includes of cache.h in other files.
The change to line-log.h might look unrelated, but line-log.h includes
diffcore.h, which previously included cache.h, which included the
kitchen sink. Since this patch makes diffcore.h no longer include
cache.h, the compiler complains about the 'struct string_list *'
function parameter. Add a forward declaration for struct string_list to
address this.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule-config.h')
-rw-r--r-- | submodule-config.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/submodule-config.h b/submodule-config.h index 28a8ca6bf4..c2045875bb 100644 --- a/submodule-config.h +++ b/submodule-config.h @@ -1,7 +1,6 @@ #ifndef SUBMODULE_CONFIG_CACHE_H #define SUBMODULE_CONFIG_CACHE_H -#include "cache.h" #include "config.h" #include "hashmap.h" #include "submodule.h" |