summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-07-15 10:49:23 -0700
committerJunio C Hamano <gitster@pobox.com>2016-07-15 10:49:23 -0700
commit82246e075e5c028dd886adda68e28de092e33df1 (patch)
treef5dd3003cab676c2378c0b0f871fb07638fce7ef /help.c
parent75676c8c8b6cbeec7ccb68d97c17db230d9f2659 (diff)
parente634160bf457f8b3a91125307681c9493f11afb2 (diff)
downloadgit-82246e075e5c028dd886adda68e28de092e33df1.tar.gz
Sync with 2.9.2
* maint: Git 2.9.2 t0006: skip "far in the future" test when unsigned long is not long enough
Diffstat (limited to 'help.c')
-rw-r--r--help.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/help.c b/help.c
index 19328ea992..2ff3b5a774 100644
--- a/help.c
+++ b/help.c
@@ -419,6 +419,12 @@ int cmd_version(int argc, const char **argv, const char *prefix)
* with external projects that rely on the output of "git version".
*/
printf("git version %s\n", git_version_string);
+ while (*++argv) {
+ if (!strcmp(*argv, "--build-options")) {
+ printf("sizeof-long: %d\n", (int)sizeof(long));
+ /* NEEDSWORK: also save and output GIT-BUILD_OPTIONS? */
+ }
+ }
return 0;
}