aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandall S. Becker <the.n.e.key@gmail.com>2024-06-21 14:09:47 -0400
committerJunio C Hamano <gitster@pobox.com>2024-06-21 16:43:58 -0700
commit57139818bf076e7231ddae446f5647407b167ea2 (patch)
tree3fef700cf51f198cf9215a648eec92619bc8ac6e
parent2e2203163df8640a9c66de663fd6337ceee710c8 (diff)
downloadgit-57139818bf076e7231ddae446f5647407b167ea2.tar.gz
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 <rsbecker@nexbridge.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--help.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/help.c b/help.c
index 92bfef140b..84770b3571 100644
--- a/help.c
+++ b/help.c
@@ -767,6 +767,9 @@ void get_version_info(struct strbuf *buf, int show_build_options)
#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
}
}