git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fmt-merge-msg: detached HEAD
@ 2007-01-25 15:36 Santi Béjar
  2007-01-26  0:16 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Santi Béjar @ 2007-01-25 15:36 UTC (permalink / raw)
  To: Git Mailing List


Do not say 'Merge ... into HEAD' when detached.

Signed-off-by: Santi Béjar <sbejar@gmail.com>
---
 builtin-fmt-merge-msg.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/builtin-fmt-merge-msg.c b/builtin-fmt-merge-msg.c
index 87d3d63..8cef425 100644
--- a/builtin-fmt-merge-msg.c
+++ b/builtin-fmt-merge-msg.c
@@ -331,7 +331,8 @@ int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix)
 			printf(" of %s", srcs.list[i]);
 	}
 
-	if (!strcmp("master", current_branch))
+	if (!strcmp("master", current_branch) ||
+	    !strcmp("HEAD", current_branch))
 		putchar('\n');
 	else
 		printf(" into %s\n", current_branch);
-- 
1.5.0.rc2.g2fa185-dirty

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

end of thread, other threads:[~2007-01-26 23:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-25 15:36 [PATCH] fmt-merge-msg: detached HEAD Santi Béjar
2007-01-26  0:16 ` Junio C Hamano
2007-01-26  9:45   ` Santi Béjar
2007-01-26  9:59     ` Junio C Hamano
2007-01-26 10:15       ` Santi Béjar
2007-01-26 23:45         ` Junio C Hamano

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 NNTP newsgroup(s).