git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove "[PATCH]" prefix from shortlog output
@ 2006-12-10  0:58 Nicolas Pitre
  2006-12-10 22:40 ` Johannes Schindelin
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Pitre @ 2006-12-10  0:58 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

This doesn't convey much information in the shortlog context.
And the perl version did strip it as well.

Signed-off-by: Nicolas Pitre <nico@cam.org>

---

diff --git a/builtin-shortlog.c b/builtin-shortlog.c
index 7a2ddfe..6c4606b 100644
--- a/builtin-shortlog.c
+++ b/builtin-shortlog.c
@@ -146,6 +146,11 @@ static void insert_author_oneline(struct path_list *list,
 	while (onelinelen > 0 && isspace(oneline[onelinelen - 1]))
 		onelinelen--;
 
+	if (onelinelen > 8 && !strncasecmp(oneline, "[PATCH] ", 8)) {
+		oneline += 8;
+		onelinelen -= 8;
+	}
+
 	buffer = xmalloc(onelinelen + 1);
 	memcpy(buffer, oneline, onelinelen);

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

end of thread, other threads:[~2006-12-11  3:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-10  0:58 [PATCH] remove "[PATCH]" prefix from shortlog output Nicolas Pitre
2006-12-10 22:40 ` Johannes Schindelin
2006-12-10 23:10   ` Jakub Narebski
2006-12-10 23:35     ` Johannes Schindelin
2006-12-10 23:32   ` Junio C Hamano
2006-12-10 23:41     ` Johannes Schindelin
2006-12-11  3:17       ` Nicolas Pitre

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).