pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: PostgreSQL-Committers <pgsql-committers@postgresql.org>
Subject: Tips on committing
Date: Thu, 28 Jun 2018 09:26:13 -0400
Message-ID: <20180628132613.GA18214@momjian.us> (raw)

With seven new committers, I thought it would be good for me to give
some tips I use in committing.  I use a standard template that is this:

     1  |--- gitweb/email subject limit -----------------|-------------|


     2  Reported-by:

     3  Bug:

     4  Discussion:

     5  Author:

     6  Reviewed-by:

     7  Tested-by:

     8  Backpatch-through: 

Any items left unchanged are automatically removed.

Line 1 shows me the length limits for the first commit line which will
appear in gitweb and commit subject lines.  I always try to fit in the
commit subject line limit but the gitweb limit is too small for me in
many cases.  (I automatically remove the first line, though that once
failed recently.)

If line 4 is a URL, I shorten it with this script:

	sed 's;http\(s\?\)://www\.postgresql\.org/message-id/;http\1://postgr.es/m/;gi' "$@"

If line 4 is a message-id, I convert it to a shortened URL:

	sed '/https\?:\/\//!s;^\(Discussion:[ \t]*\)\(.*@.*\)$;\1https://postgr.es/m/\2;g'

I check for files in the tree with 'rej' extensions, which might
indicate failed patch application.

I also remove repeated blank lines with:

	cat --squeeze-blank

-- 
  Bruce Momjian  <bruce@momjian.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 +




view thread (21+ messages)  latest in thread

Message-ID: <20180628132613.GA18214@momjian.us>
Permalink:  ../20180628132613.GA18214@momjian.us/
Also on:    postgresql.org/message-id/20180628132613.GA18214@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: bruce@momjian.us
  Subject: Re: Tips on committing
  In-Reply-To: <20180628132613.GA18214@momjian.us>
  References: <20180628132613.GA18214@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox