Skip to content

Commit 2e22031

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

help.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
#include "prompt.h"
1616
#include "fsmonitor-ipc.h"
1717

18+
#ifndef NO_CURL
19+
#include "git-curl-compat.h" /* For LIBCURL_VERSION only */
20+
#endif
21+
1822
struct category_description {
1923
uint32_t category;
2024
const char *desc;
@@ -757,6 +761,9 @@ void get_version_info(struct strbuf *buf, int show_build_options)
757761

758762
if (fsmonitor_ipc__is_supported())
759763
strbuf_addstr(buf, "feature: fsmonitor--daemon\n");
764+
#if defined LIBCURL_VERSION
765+
strbuf_addf(buf, "libcurl: %s\n", LIBCURL_VERSION);
766+
#endif
760767
#if defined OPENSSL_VERSION_TEXT
761768
strbuf_addf(buf, "OpenSSL: %s\n", OPENSSL_VERSION_TEXT);
762769
#endif

0 commit comments

Comments
 (0)