Re: Shortened URLs for commit messages

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Shortened URLs for commit messages
Date: 2017-06-16 13:51:31
Message-ID: 20170616135131.GA8056@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jun 15, 2017 at 01:05:19PM -0400, Bruce Momjian wrote:
> On Tue, May 23, 2017 at 11:25:07PM -0400, Bruce Momjian wrote:
> > I have written the following sed script to convert regular Postgres
> > email message URLs to their shorter form for commit messages:
> >
> > sed 's;http\(s\?\)://www\.postgresql\.org/message-id/;http\1://postgr.es/m/;gi'
> >
> > in case this is helpful to anyone.
>
> Oh, here's another one. I use an optional "Discussion:" tag in my
> commit messages. This sed script converts a message-id into a proper
> URL:
>
> sed '/http/!s;^\(Discussion: *\)\(.*\)$;\1https://postgr.es/m/\2;'

Oh, here is a fixed version that requires an @ sign, which all message
id's have:

sed '/http/!s;^\(Discussion: *\)\((dot)*(at)(dot)*\)$;\1https://postgr.es/m/\2;'

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Euler Taveira 2017-06-16 13:53:18 Re: Restrictions of logical replication
Previous Message Yuan Dong 2017-06-16 13:41:28 答复: GiST API Adancement