From: Nicolas Pitre <nico@cam.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: [PATCH] remove "[PATCH]" prefix from shortlog output
Date: Sat, 09 Dec 2006 19:58:32 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.64.0612091954010.2630@xanadu.home> (raw)
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);
next reply other threads:[~2006-12-10 0:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-10 0:58 Nicolas Pitre [this message]
2006-12-10 22:40 ` [PATCH] remove "[PATCH]" prefix from shortlog output 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0612091954010.2630@xanadu.home \
--to=nico@cam.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).