From: Andy Parkins Date: Thu, 14 Dec 2006 15:25:23 +0000 (+0000) Subject: git-status always says what branch it's on X-Git-Tag: v1.5.0-rc0~95 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a990999e0df3d0518a2fef60feb1ec269e36ada6;p=git.git git-status always says what branch it's on If the current branch was "master" then git-status wouldn't say # On branch XXXX In its output. This patch makes it so that this message is always output; regardless of branch name. Signed-off-by: Andy Parkins Signed-off-by: Junio C Hamano --- diff --git a/wt-status.c b/wt-status.c index c388ce129..cface6ca8 100644 --- a/wt-status.c +++ b/wt-status.c @@ -271,7 +271,7 @@ static void wt_status_print_verbose(struct wt_status *s) void wt_status_print(struct wt_status *s) { - if (s->branch && strcmp(s->branch, "refs/heads/master")) + if (s->branch) color_printf_ln(color(WT_STATUS_HEADER), "# On branch %s", s->branch);