Re: Mail thread references in commits

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Stephen Frost <sfrost(at)snowman(dot)net>, Joshua Drake <jd(at)commandprompt(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Mail thread references in commits
Date: 2016-11-28 18:36:31
Message-ID: 53ef85c3-1ab3-e7d2-041d-e2a90fdbb422@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11/28/2016 09:49 AM, Alvaro Herrera wrote:
> Magnus Hagander wrote:
>
>> I don't really read perl enough to take it apart. But
>> http://git.kernel.org/cgit/git/git.git/tree/gitweb/gitweb.perl is the code
>> (we're probably on an older version). I'm guessing it's coming out of
>> format_log_line (
>> http://git.kernel.org/cgit/git/git.git/tree/gitweb/gitweb.perl#n2035). (the
>> version we have only has the part that looks for the hash).
> I think if we do want to fork, we should be looking at git_print_log
> http://git.kernel.org/cgit/git/git.git/tree/gitweb/gitweb.perl#n4580
> There's a regexp match that looks for "https://" but only when preceded
> with "link: " (which is a bit odd, isn't it?).
>
>> I wonder if it's worth forking gitweb to make it do explicitly what we want
>> for this -- that is recognize all the different kinds of things that would
>> be interesting here. But that fork should probably be done by somebody with
>> some more perl skills than me :)
> I think changing message-id links to URLs would be veyr handy, but
> before proposing a fork I would like to have a better idea of how much
> effort it entails.
>

I should point out that the link as Tom put it in his commit message is
working fine on every MUA that I have tried: Thunderbird (my usual MUA),
the GMail web interface, and the native MUAs on my Android Tablet and my
iPhone. So I'm pretty happy with that, and want to make sure that
nothing we do to accomodate gitweb would interfere with it. From my POV
the pattern Tom used in that commit is perfect.

If there's a lack of perl-fu to do it, I hope to be in a better position
to help a bit with that in a couple of weeks.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nico Williams 2016-11-28 18:38:20 Re: Tackling JsonPath support
Previous Message Robert Haas 2016-11-28 18:32:25 Re: [BUG?] pg_event_trigger_ddl_commands() error with ALTER TEXT SEARCH CONFIGURATION