]> git.ipfire.org Git - thirdparty/git.git/commitdiff
version: teach --build-options to reports zlib version information
authorRandall S. Becker <the.n.e.key@gmail.com>
Fri, 21 Jun 2024 18:09:47 +0000 (14:09 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Jun 2024 23:43:58 +0000 (16:43 -0700)
Show ZLIB_VERSION, if defined, in "git version --build-options"
output.

Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c

diff --git a/help.c b/help.c
index 92bfef140bbdca3053a00cd77bb011ebced46854..84770b3571c1e7ba6c93f743fb1a29759d746dec 100644 (file)
--- a/help.c
+++ b/help.c
@@ -766,6 +766,9 @@ void get_version_info(struct strbuf *buf, int show_build_options)
 #endif
 #if defined OPENSSL_VERSION_TEXT
                strbuf_addf(buf, "OpenSSL: %s\n", OPENSSL_VERSION_TEXT);
+#endif
+#if defined ZLIB_VERSION
+               strbuf_addf(buf, "zlib: %s\n", ZLIB_VERSION);
 #endif
        }
 }