]> git.ipfire.org Git - thirdparty/git.git/commit
git-compat-util: move include of "compat/zlib.h" into "git-zlib.h"
authorPatrick Steinhardt <ps@pks.im>
Tue, 28 Jan 2025 08:41:30 +0000 (09:41 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jan 2025 21:03:22 +0000 (13:03 -0800)
commit41f1a8435a900b660b7a6bc9da8dce2665e4b70a
tree8db1a650c6fdf589021007fedb365de8e0100791
parent629188ede7ee00c925ef28b85b1e68fc9e05fb93
git-compat-util: move include of "compat/zlib.h" into "git-zlib.h"

We include "compat/zlib.h" in "git-compat-util.h", which is
unnecessarily broad given that we only have a small handful of files
that use the zlib library. Move the header into "git-zlib.h" instead and
adapt users of zlib to include that header.

One exception is the reftable library, as we don't want to use the
Git-specific wrapper of zlib there, so we include "compat/zlib.h"
instead. Furthermore, we move the include into "reftable/system.h" so
that users of the library other than Git can wire up zlib themselves.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive.c
config.c
csum-file.c
environment.c
git-compat-util.h
git-zlib.h
reftable/block.c
reftable/system.h