status: introduce status.short to enable --short by default
[gitweb.git] / builtin / commit.c
index d2f30d960a71e41da88d6cc4201cbdca168b8648..b2f41dea20af1d7ba6ae0ffff2c09113ac0daf6c 100644 (file)
@@ -1110,6 +1110,13 @@ static int git_status_config(const char *k, const char *v, void *cb)
                        s->submodule_summary = -1;
                return 0;
        }
+       if (!strcmp(k, "status.short")) {
+               if (git_config_bool(k, v))
+                       status_format = STATUS_FORMAT_SHORT;
+               else
+                       status_format = STATUS_FORMAT_NONE;
+               return 0;
+       }
        if (!strcmp(k, "status.color") || !strcmp(k, "color.status")) {
                s->use_color = git_config_colorbool(k, v);
                return 0;