commit: make it work with status.short
With "status.short" set, it is now impossible to commit with status.short set, because it acts like "git commit --short", and it is impossible to differentiate between a status_format set by the command-line option parser versus that set by the config parser. To alleviate this problem, clear status_format as soon as the config parser has finished its work. Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ramkumar Ramachandra committed
Jun 24, 2013 at 18:15 UTC
f0915cbaf476d63f72c284057680809ed24fbe0d
1 file changed
+1
builtin/commit.c
+1
@@ -1441,6 +1441,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
1441
wt_status_prepare(&s);
1442
gitmodules_config();
1443
git_config(git_commit_config, &s);
1444
+ status_format = STATUS_FORMAT_NONE; /* Ignore status.short */
1445
determine_whence(&s);
1446
s.colopts = 0;
1447