]> git.ipfire.org Git - thirdparty/git.git/commit
hash.h: move some oid-related declarations from cache.h
authorElijah Newren <newren@gmail.com>
Fri, 24 Feb 2023 00:09:25 +0000 (00:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Feb 2023 01:25:28 +0000 (17:25 -0800)
commit41227cb138c91fbd369ac6ee4877f253b39260cc
tree197f151f5fe36292f68ab92735ff355d3e544df5
parent36bf19589055fb71aac0ed6719dfe5b385adc2bf
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>
cache.h
diffcore.h
hash.h
line-log.h
submodule-config.h
t/helper/test-submodule-nested-repo-config.c
tree-walk.h