diff options
author | David Aguilar <davvid@gmail.com> | 2013-04-16 22:33:25 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-17 00:01:30 +0200 |
commit | f2de0b97935da2ba3ccb627457e5fa3fc4e11287 (patch) | |
tree | 4b3a0368bf75d780f45080b0f6bd27c48b04235e /help.c | |
parent | Merge branch 'rr/test-3200-style' into maint (diff) | |
download | git-f2de0b97935da2ba3ccb627457e5fa3fc4e11287.tar.xz git-f2de0b97935da2ba3ccb627457e5fa3fc4e11287.zip |
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 <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.c')
-rw-r--r-- | help.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |