summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-07-15 09:43:42 -0700
committerJunio C Hamano <gitster@pobox.com>2016-07-15 09:43:42 -0700
commit33eacd3ff43e49109594c44e93b7ee66725fb8af (patch)
tree0a02655395cdd4623ab5ba915df57c16e1a4d9a4 /help.c
parent5c9159de87e41cf14ec5f2132afb5a06f35c26b3 (diff)
parent6b9c38e14cd3abf9b95cabe8b86954f0c4e94a38 (diff)
downloadgit-33eacd3ff43e49109594c44e93b7ee66725fb8af.tar.gz
Merge branch 'jk/tzoffset-fix' into maint
Skip tests that are unrunnable on platforms without 64-bit long to avoid unnecessary test failures. * jk/tzoffset-fix: 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;
}