status: introduce status.branch to enable --branch by default
[gitweb.git] / builtin / commit.c
index b2f41dea20af1d7ba6ae0ffff2c09113ac0daf6c..d6c8e204ee7eb52f56c3d3123af54d24ac397334 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;