diff options
author | Randall S. Becker <the.n.e.key@gmail.com> | 2024-06-21 14:09:46 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-06-21 16:40:43 -0700 |
commit | 2e2203163df8640a9c66de663fd6337ceee710c8 (patch) | |
tree | 39c77941c2cae5f0b32a5934946fc00411e79a18 /help.c | |
parent | 8b731b8d06b710ce25dcef8134db30e1389dd92f (diff) |
version: teach --build-options to reports libcurl version information
Show LIBCURL_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>
Diffstat (limited to 'help.c')
-rw-r--r-- | help.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -15,6 +15,10 @@ #include "prompt.h" #include "fsmonitor-ipc.h" +#ifndef NO_CURL +#include "git-curl-compat.h" /* For LIBCURL_VERSION only */ +#endif + struct category_description { uint32_t category; const char *desc; @@ -757,6 +761,9 @@ void get_version_info(struct strbuf *buf, int show_build_options) if (fsmonitor_ipc__is_supported()) strbuf_addstr(buf, "feature: fsmonitor--daemon\n"); +#if defined LIBCURL_VERSION + strbuf_addf(buf, "libcurl: %s\n", LIBCURL_VERSION); +#endif #if defined OPENSSL_VERSION_TEXT strbuf_addf(buf, "OpenSSL: %s\n", OPENSSL_VERSION_TEXT); #endif |