From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: [PATCH] remove "[PATCH]" prefix from shortlog output
Date: Mon, 11 Dec 2006 00:10:02 +0100 [thread overview]
Message-ID: <eli3vr$j6v$1@sea.gmane.org> (raw)
In-Reply-To: Pine.LNX.4.63.0612102337090.28348@wbgn013.biozentrum.uni-wuerzburg.de
Johannes Schindelin wrote:
> On Sat, 9 Dec 2006, Nicolas Pitre wrote:
>
>> This doesn't convey much information in the shortlog context.
>> And the perl version did strip it as well.
>
> From the current builtin-shortlog.c:128ff:
>
> if (!strncmp(oneline, "[PATCH", 6)) {
> char *eob = strchr(oneline, ']');
>
> if (eob) {
> while (isspace(eob[1]) && eob[1] != '\n')
> eob++;
> if (eob - oneline < onelinelen) {
> onelinelen -= eob - oneline;
> oneline = eob;
> }
> }
> }
>
> It tries not only to strip "[PATCH]", but also "[PATCH 0/n]" and basically
> every prefix beginning with "[PATCH" and ending in "]". I do not remember
> if I really tested that code, but it should work.
What happens if you have "[PATCH" without closing "]"? Does it work (and
doesn't crash)? Does it strip anything?
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
next prev parent reply other threads:[~2006-12-10 23:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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='eli3vr$j6v$1@sea.gmane.org' \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
/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).