It is currently not possible to use the short-form output of git status without declaring an alias to do so. This isn't always desirable therfore, define a git config option which can be set to display the short-form: status.shortwithbranch Signed-off-by: Thomas Adam <thomas@xxxxxxxxxx> --- builtin/commit.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/builtin/commit.c b/builtin/commit.c index a17a5df..552a9f1 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -1142,6 +1142,18 @@ static int git_status_config(const char *k, const char *v, void *cb) return error(_("Invalid untracked files mode '%s'"), v); return 0; } + + if (!strcmp(k, "status.shortwithbranch")) { + if (git_config_bool(k, v)) { + if (!v) + return config_error_nonbool(k); + else if(!strcmp(v, "true")) { + status_format = STATUS_FORMAT_SHORT; + s->show_branch = 1; + } + return 0; + } + } return git_diff_ui_config(k, v, NULL); } -- 1.7.11.4 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html