summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 82dca84)
raw | patch | inline | side by side (parent: 82dca84)
author | Andy Parkins <andyparkins@gmail.com> | |
Thu, 14 Dec 2006 15:25:23 +0000 (15:25 +0000) | ||
committer | Junio 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>
# 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 | patch | blob | history |
diff --git a/wt-status.c b/wt-status.c
index c388ce12934545344d794b7372527c4ee6f901e0..cface6ca88666d5e1de116110cb52eea4d91a5f1 100644 (file)
--- a/wt-status.c
+++ b/wt-status.c
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);