git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] git-status always says what branch it's on
@ 2006-12-14 15:25 Andy Parkins
  2006-12-14 15:54 ` Andreas Ericsson
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Parkins @ 2006-12-14 15:25 UTC (permalink / raw)
  To: git

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>
---
 wt-status.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/wt-status.c b/wt-status.c
index de1be5b..9a78dac 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);
 
-- 
1.4.4.1.g3ece-dirty

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] git-status always says what branch it's on
  2006-12-14 15:25 [PATCH] git-status always says what branch it's on Andy Parkins
@ 2006-12-14 15:54 ` Andreas Ericsson
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Ericsson @ 2006-12-14 15:54 UTC (permalink / raw)
  To: Andy Parkins; +Cc: git

Andy Parkins wrote:
> 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.
> 

I like it. I know that it's quiet when I'm on 'master', but I still need 
to spend an extra cycle to remember that fact. Uniformity is a good 
thing in program behaviour.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-14 15:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-14 15:25 [PATCH] git-status always says what branch it's on Andy Parkins
2006-12-14 15:54 ` Andreas Ericsson

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).