From: David Aguilar Date: Tue, 16 Apr 2013 20:33:25 +0000 (-0700) Subject: help.c: add a compatibility comment to cmd_version() X-Git-Tag: v1.8.2.2~36 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f2de0b97935da2ba3ccb627457e5fa3fc4e11287?hp=--cc help.c: add a compatibility comment to cmd_version() External projects have been known to parse the output of "git version". Help prevent future authors from changing its format by adding a comment to its implementation. Signed-off-by: David Aguilar Signed-off-by: Junio C Hamano --- f2de0b97935da2ba3ccb627457e5fa3fc4e11287 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; }