commit: make it work with status.short
[gitweb.git] / builtin / commit.c
index b2f41dea20af1d7ba6ae0ffff2c09113ac0daf6c..0da944fa4e3ad9aa46b9d22c9aed281dae01d267 100644 (file)
@@ -1117,6 +1117,10 @@ static int git_status_config(const char *k, const char *v, void *cb)
                        status_format = STATUS_FORMAT_NONE;
                return 0;
        }
+       if (!strcmp(k, "status.branch")) {
+               s->show_branch = git_config_bool(k, v);
+               return 0;
+       }
        if (!strcmp(k, "status.color") || !strcmp(k, "color.status")) {
                s->use_color = git_config_colorbool(k, v);
                return 0;
@@ -1437,6 +1441,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
        wt_status_prepare(&s);
        gitmodules_config();
        git_config(git_commit_config, &s);
+       status_format = STATUS_FORMAT_NONE; /* Ignore status.short */
        determine_whence(&s);
        s.colopts = 0;