From: Junio C Hamano <gitster@pobox.com>
To: Emma Brooks <me@pluvano.com>
Cc: git@vger.kernel.org, "Jakub Narębski" <jnareb@gmail.com>,
"Namhyung Kim" <namhyung@gmail.com>
Subject: Re: [PATCH] gitweb: Recognize *-to and Closes/Fixes trailers
Date: Fri, 24 Apr 2020 22:17:58 -0700 [thread overview]
Message-ID: <xmqqeesc9m9l.fsf@gitster.c.googlers.com> (raw)
In-Reply-To: <20200425021723.16346-1-me@pluvano.com> (Emma Brooks's message of "Sat, 25 Apr 2020 02:17:23 +0000")
Emma Brooks <me@pluvano.com> writes:
> Commit trailers like "Thanks-to:", "Fixes:", and "Closes:" are fairly
> common, but gitweb didn't highlight them like other trailers.
Did you also sneak "cc" in without documenting/justifying?
When the re becomes this complex, it may not be a bad idea to switch
to "/ ignore most whitespaces /x" style for readability.
> - if ($line =~ m/^\s*([A-Z][-A-Za-z]*-[Bb]y|C[Cc]): /) {
> + if ($line =~ m/^\s*([A-Z][-A-Za-z]*-([Bb]y|[Tt]o)|C[Cc]|(Clos|Fix)es): /) {
if ($line =~ m/^\s*([A-Z][-A-Za-z]*-([Bb]y|[Tt]o) |
C[Cc] | Closes | Fixes ):\s /x) {
Well, I am sloppy and did not make it all that easier to read.
More experienced Perl folks certainly would be able to teach us a
much better convention to format things like this more readble.
next prev parent reply other threads:[~2020-04-25 5:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-25 2:17 [PATCH] gitweb: Recognize *-to and Closes/Fixes trailers Emma Brooks
2020-04-25 5:17 ` Junio C Hamano [this message]
2020-04-25 6:29 ` Emma Brooks
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=xmqqeesc9m9l.fsf@gitster.c.googlers.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=me@pluvano.com \
--cc=namhyung@gmail.com \
/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