From: Randall S. Becker Date: Fri, 21 Jun 2024 18:09:47 +0000 (-0400) Subject: version: teach --build-options to reports zlib version information X-Git-Tag: v2.46.0-rc0~19^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57139818bf076e7231ddae446f5647407b167ea2;p=thirdparty%2Fgit.git version: teach --build-options to reports zlib version information Show ZLIB_VERSION, if defined, in "git version --build-options" output. Signed-off-by: Randall S. Becker Signed-off-by: Junio C Hamano --- diff --git a/help.c b/help.c index 92bfef140b..84770b3571 100644 --- 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 } }