pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Stephen Frost <sfrost@snowman.net>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Pg Committers <pgsql-committers@postgresql.org>
Subject: Re: Tips on committing
Date: Mon, 2 Jul 2018 12:21:50 -0400
Message-ID: <20180702162150.seciy5gct5vdfzaw@alvherre.pgsql> (raw)
In-Reply-To: <20180702160546.GB27724@tamriel.snowman.net>

On 2018-Jul-02, Stephen Frost wrote:

> > * Do a dry run before really pushing by using --dry-run.
> 
> In addition to this, I'd recommend using 'git show' on the results of
> the --dry-run, so that you see what you're really about to push.

Since commit 653530c8b196 I use this little script I borrowed from Magnus, then
page through all of it before pushing.

git push --dry-run 2>&1 | grep -v '^To' | while read line; do
    if [ "$line" == "Everything up-to-date" ]; then
        echo $line
    else
        topush=$(echo $line | awk '{print $1}')
        git log --format=oneline $topush | cat
        git show --format=fuller --color $topush | cat
    fi
done | less -R

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (21+ messages)  latest in thread

Message-ID: <20180702162150.seciy5gct5vdfzaw@alvherre.pgsql>
Permalink:  ../20180702162150.seciy5gct5vdfzaw@alvherre.pgsql/
Also on:    postgresql.org/message-id/20180702162150.seciy5gct5vdfzaw@alvherre.pgsql

 · 

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: alvherre@2ndquadrant.com, sfrost@snowman.net, pg@bowt.ie, bruce@momjian.us, pgsql-hackers@postgresql.org
  Subject: Re: Tips on committing
  In-Reply-To: <20180702162150.seciy5gct5vdfzaw@alvherre.pgsql>
  References: <20180702160546.GB27724@tamriel.snowman.net> <20180702162150.seciy5gct5vdfzaw@alvherre.pgsql>

* 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