diff options
| author | Junio C Hamano <gitster@pobox.com> | 2017-12-28 14:08:47 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-12-28 14:08:47 -0800 |
| commit | 58d1772c8562c4777414d9b97de127ae5b35ad81 (patch) | |
| tree | b51c125a670e839aa63022723420ac7b99034367 /help.c | |
| parent | deeb2fce083d75d8e2b5bafef4d96f48cc81c391 (diff) | |
| parent | ed32b788c06973ef28440ef81fdde9e7e55667f1 (diff) | |
| download | git-58d1772c8562c4777414d9b97de127ae5b35ad81.tar.gz | |
Merge branch 'js/enhanced-version-info'
"git version --build-options" learned to report the host CPU and
the exact commit object name the binary was built from.
* js/enhanced-version-info:
version --build-options: report commit, too, if possible
version --build-options: also report host CPU
Diffstat (limited to 'help.c')
| -rw-r--r-- | help.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -412,6 +412,12 @@ int cmd_version(int argc, const char **argv, const char *prefix) printf("git version %s\n", git_version_string); if (build_options) { + printf("cpu: %s\n", GIT_HOST_CPU); + if (git_built_from_commit_string[0]) + printf("built from commit: %s\n", + git_built_from_commit_string); + else + printf("no commit associated with this build\n"); printf("sizeof-long: %d\n", (int)sizeof(long)); /* NEEDSWORK: also save and output GIT-BUILD_OPTIONS? */ } |
