From ec85d0700faac679ec27eeacad2bcaa6d9bc8322 Mon Sep 17 00:00:00 2001 From: Jorge Juan Garcia Garcia Date: Tue, 11 Jun 2013 15:34:05 +0200 Subject: status: introduce status.branch to enable --branch by default Some people often run 'git status -b'. The config variable status.branch allows to set it by default. Signed-off-by: Jorge Juan Garcia Garcia Signed-off-by: Mathieu Lienard--Mayor Reviewed-by: Matthieu Moy Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- builtin/commit.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'builtin/commit.c') diff --git a/builtin/commit.c b/builtin/commit.c index b2f41dea2..d6c8e204e 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -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; -- cgit v1.2.1