diff options
| author | Randall S. Becker <the.n.e.key@gmail.com> | 2024-06-21 14:09:47 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-06-21 16:43:58 -0700 |
| commit | 57139818bf076e7231ddae446f5647407b167ea2 (patch) | |
| tree | 3fef700cf51f198cf9215a648eec92619bc8ac6e | |
| parent | 2e2203163df8640a9c66de663fd6337ceee710c8 (diff) | |
| download | git-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 } } |
