]> git.ipfire.org Git - thirdparty/git.git/commit
help: include SHA implementation in version info
authorJustin Tobler <jltobler@gmail.com>
Thu, 3 Apr 2025 14:05:28 +0000 (09:05 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2025 21:39:26 +0000 (14:39 -0700)
commit16fd6c85e4d036e789916e4d802b47a792fe496e
tree8e2a423df7f091b4c5508a388760474738c476d8
parent683c54c999c301c2cd6f715c411407c413b1d84e
help: include SHA implementation in version info

When the `--build-options` flag is used with git-version(1), additional
information about the built version of Git is printed. During build
time, different SHA implementations may be configured, but this
information is not included in the version info.

Add the SHA implementations Git is built with to the version info by
requiring each backend to define a SHA1_BACKEND or SHA256_BACKEND symbol
as appropriate and use the value in the printed build options.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-version.adoc
hash.h
help.c