summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-16 15:14:44 -0700
committerJunio C Hamano <gitster@pobox.com>2013-04-16 15:14:44 -0700
commitdcd8c09e4dd60f66db53e18377d257609d87ca67 (patch)
treeeead4fac96cc3d9ed2e1efd6c250e795ab128485
parent95f31e9ab52b4377086acf7c4d070083e0bee039 (diff)
parentf2de0b97935da2ba3ccb627457e5fa3fc4e11287 (diff)
downloadgit-dcd8c09e4dd60f66db53e18377d257609d87ca67.tar.gz
Merge branch 'maint'
* maint: help.c: add a compatibility comment to cmd_version()
-rw-r--r--help.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/help.c b/help.c
index 1dfa0b0582..02ba043319 100644
--- a/help.c
+++ b/help.c
@@ -397,6 +397,10 @@ const char *help_unknown_cmd(const char *cmd)
int cmd_version(int argc, const char **argv, const char *prefix)
{
+ /*
+ * The format of this string should be kept stable for compatibility
+ * with external projects that rely on the output of "git version".
+ */
printf("git version %s\n", git_version_string);
return 0;
}