Skip to content

Commit f0915cb

Browse files
artagnongitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ec85d07 commit f0915cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/commit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
14411441
wt_status_prepare(&s);
14421442
gitmodules_config();
14431443
git_config(git_commit_config, &s);
1444+
status_format = STATUS_FORMAT_NONE; /* Ignore status.short */
14441445
determine_whence(&s);
14451446
s.colopts = 0;
14461447

0 commit comments

Comments
 (0)