diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-04-16 13:54:19 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-16 13:54:20 -0700 |
| commit | 8f490db4e200edd22e247ec07fb1349a26c155b2 (patch) | |
| tree | d14be03832976bde858258190c3e12a2f7e8a59f /help.c | |
| parent | Merge branch 'kn/non-transactional-batch-updates' (diff) | |
| parent | help: include unsafe SHA-1 build info in version (diff) | |
| download | git-8f490db4e200edd22e247ec07fb1349a26c155b2.tar.gz git-8f490db4e200edd22e247ec07fb1349a26c155b2.zip | |
Merge branch 'jt/help-sha-backend-info-in-build-options'
"git help --build-options" reports SHA-1 and SHA-256 backends used
in the build.
* jt/help-sha-backend-info-in-build-options:
help: include unsafe SHA-1 build info in version
help: include SHA implementation in version info
Diffstat (limited to 'help.c')
| -rw-r--r-- | help.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -9,6 +9,7 @@ #include "run-command.h" #include "levenshtein.h" #include "gettext.h" +#include "hash.h" #include "help.h" #include "command-list.h" #include "string-list.h" @@ -803,6 +804,12 @@ void get_version_info(struct strbuf *buf, int show_build_options) #elif defined ZLIB_VERSION strbuf_addf(buf, "zlib: %s\n", ZLIB_VERSION); #endif + strbuf_addf(buf, "SHA-1: %s\n", SHA1_BACKEND); +#if defined SHA1_UNSAFE_BACKEND + strbuf_addf(buf, "non-collision-detecting-SHA-1: %s\n", + SHA1_UNSAFE_BACKEND); +#endif + strbuf_addf(buf, "SHA-256: %s\n", SHA256_BACKEND); } } |
