mirror of
https://github.com/git/git.git
synced 2026-01-11 02:32:58 +00:00
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>
35 lines
845 B
Plaintext
35 lines
845 B
Plaintext
git-version(1)
|
|
==============
|
|
|
|
NAME
|
|
----
|
|
git-version - Display version information about Git
|
|
|
|
SYNOPSIS
|
|
--------
|
|
[verse]
|
|
'git version' [--build-options]
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
With no options given, the version of 'git' is printed on the standard output.
|
|
|
|
Note that `git --version` is identical to `git version` because the
|
|
former is internally converted into the latter.
|
|
|
|
OPTIONS
|
|
-------
|
|
--build-options::
|
|
Include additional information about how git was built for diagnostic
|
|
purposes.
|
|
+
|
|
The libraries used to implement the SHA-1 and SHA-256 algorithms are displayed
|
|
in the form `SHA-1: <option>` and `SHA-256: <option>`. Note that the SHA-1
|
|
options `SHA1_APPLE`, `SHA1_OPENSSL`, and `SHA1_BLK` do not use a collision
|
|
detection algorithm and thus may be vulnerable to known SHA-1 collision
|
|
attacks.
|
|
|
|
GIT
|
|
---
|
|
Part of the linkgit:git[1] suite
|