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>
Andy Parkins committed
Dec 14, 2006 at 15:25 UTC
a990999e0df3d0518a2fef60feb1ec269e36ada6
1 file changed
+1
-1
wt-status.c
+1
-1
@@ -271,7 +271,7 @@ static void wt_status_print_verbose(struct wt_status *s)
271
272
void wt_status_print(struct wt_status *s)
273
{
274
- if (s->branch && strcmp(s->branch, "refs/heads/master"))
274
+ if (s->branch)
275
color_printf_ln(color(WT_STATUS_HEADER),
276
"# On branch %s", s->branch);
277