Code

git-status always says what branch it's on
authorAndy Parkins <andyparkins@gmail.com>
Thu, 14 Dec 2006 15:25:23 +0000 (15:25 +0000)
committerJunio C Hamano <junkio@cox.net>
Sat, 16 Dec 2006 07:50:27 +0000 (23:50 -0800)
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>
wt-status.c

index c388ce12934545344d794b7372527c4ee6f901e0..cface6ca88666d5e1de116110cb52eea4d91a5f1 100644 (file)
@@ -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);