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>
This commit is contained in:
Andy Parkins 2006-12-14 15:25:23 +00:00 committed by Junio C Hamano
parent 82dca84871
commit a990999e0d

View File

@ -271,7 +271,7 @@ static void wt_status_print_verbose(struct wt_status *s)
void wt_status_print(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), color_printf_ln(color(WT_STATUS_HEADER),
"# On branch %s", s->branch); "# On branch %s", s->branch);