Re: Weird mangling of a commit log entry in gitweb summary

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Weird mangling of a commit log entry in gitweb summary
Дата
Msg-id CABUevEyVeWv333C7PThqqs2vQwY5ODExkPAcOHxpozr649P6bA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Weird mangling of a commit log entry in gitweb summary  (Julien Rouhaud <rjuju123@gmail.com>)
Ответы Re: Weird mangling of a commit log entry in gitweb summary  (Julien Rouhaud <rjuju123@gmail.com>)
Список pgsql-www
On Mon, Jul 18, 2022 at 10:19 AM Julien Rouhaud <rjuju123@gmail.com> wrote:
>
> Hi,
>
> On Mon, Jul 18, 2022 at 09:34:23AM +0200, Alvaro Herrera wrote:
> > On 2022-Jul-17, Magnus Hagander wrote:
> >
> > > On Sun, Jul 17, 2022 at 1:26 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >
> > > > 6 hours ago     Tom Lane        Remove postc's reset_shared() wrapper function.         commit | commitdiff |
tree
> > > >
> > > > What's up with that?
> > >
> > > I have no idea why but it's clearly getting confused by the single
> > > quote. But it doesn't appear to do that in other places where there's
> > > a single quote in there. I see nothing strange with the commit message
> > > itself, and the cgit view of it shows nothing strange either...
> >
> > How do you know it's the single quote?  The problem is not adjacent to
> > that.  Maybe it's replacing the string "branch name followed by period"
> > with an empty string.
>
> It looks like some gitweb's heuristics to try to reduce the title name:
>
> https://github.com/git/git/blob/master/gitweb/gitweb.perl#L3570-L3572
>
> > if (length($title) > 50) {
> >       $title =~ s/(master|www|rsync)\.//;
> > }

Hah. I searched that code for a lot of things. but clearly not that one.

AFAICT this is not functionality that can be turned off, it's all
hardcoded both in what it searches and when it does it. :/

I doubt it's worth forking and maintaining a fork just to handle this
situation given how seldom it shows up.

-- 
 Magnus Hagander
 Me: https://www.hagander.net/
 Work: https://www.redpill-linpro.com/



В списке pgsql-www по дате отправления:

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: Weird mangling of a commit log entry in gitweb summary
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: Weird mangling of a commit log entry in gitweb summary