We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 95f31e9 + f2de0b9 commit dcd8c09Copy full SHA for dcd8c09
1 file changed
help.c
@@ -397,6 +397,10 @@ const char *help_unknown_cmd(const char *cmd)
397
398
int cmd_version(int argc, const char **argv, const char *prefix)
399
{
400
+ /*
401
+ * The format of this string should be kept stable for compatibility
402
+ * with external projects that rely on the output of "git version".
403
+ */
404
printf("git version %s\n", git_version_string);
405
return 0;
406
}
0 commit comments