Skip to content

Commit 5713981

Browse files
Randall S. Beckergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2e22031 commit 5713981

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

help.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,9 @@ void get_version_info(struct strbuf *buf, int show_build_options)
766766
#endif
767767
#if defined OPENSSL_VERSION_TEXT
768768
strbuf_addf(buf, "OpenSSL: %s\n", OPENSSL_VERSION_TEXT);
769+
#endif
770+
#if defined ZLIB_VERSION
771+
strbuf_addf(buf, "zlib: %s\n", ZLIB_VERSION);
769772
#endif
770773
}
771774
}

0 commit comments

Comments
 (0)