summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorAndy Parkins <andyparkins@gmail.com>2006-12-14 15:25:23 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-16 07:50:27 (GMT)
commita990999e0df3d0518a2fef60feb1ec269e36ada6 (patch)
tree39496d5952c5a0c1ccea48eb726722c8bdb75bcd /wt-status.c
parent82dca84871637ac9812c0dec27f56d07cfba524c (diff)
downloadgit-a990999e0df3d0518a2fef60feb1ec269e36ada6.zip
git-a990999e0df3d0518a2fef60feb1ec269e36ada6.tar.gz
git-a990999e0df3d0518a2fef60feb1ec269e36ada6.tar.bz2
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 <andyparkins@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wt-status.c b/wt-status.c
index c388ce1..cface6c 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);