Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fa1aU-0003zc-Cu for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Jul 2018 16:22:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fa1aS-0000v9-Qm for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Jul 2018 16:22:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fa1aS-0000uv-EU for pgsql-hackers@lists.postgresql.org; Mon, 02 Jul 2018 16:22:00 +0000 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fa1aO-0000Dl-3d for pgsql-hackers@postgresql.org; Mon, 02 Jul 2018 16:21:59 +0000 Received: by mail-qk0-x242.google.com with SMTP id u62-v6so8926550qkf.9 for ; Mon, 02 Jul 2018 09:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=jSINJBExBtqrAEAJ+vimgPp5wZ9tkwxBemPBzPUSYYg=; b=BAGm72mg3ijX91llgIRPWRyOVrIdkykR0rpUSSb+vxNebWCJtZrq+I32FL7bi4FA9b uGhZ9MwNL7wO2cMyV3Y7gf3CyTxlGubq2nUXauVteCWN8P7T6nUmSigw+HPHAsb3Tl1X X2ypxxC4/wLWpW9Fqgw296jiwkWbIeNC7ol/dvO2YkgUH24rJWj/v369ucr3TbHVPYUd WHnMsDpFc25MxsKAYWqXRKuOsu6XnImJX3Tg/ui9bquJZVwBdjYjmyJ0Bg6r6Hlc6QLN mzHuvN0hHR7nJRNshzcdnetNRsXrrtMSnjeetHw/L7mtJTKo6IiKi/Fx8DRM2hHYCmPW INXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=jSINJBExBtqrAEAJ+vimgPp5wZ9tkwxBemPBzPUSYYg=; b=mc4AZ0e+Iih0lbRdCcuzgwsQUDZbsXfJnTWBtx5Oi6XJiYcqvSiNf7vVJa9pxylyPL Qewz/4uuvHREPwgws4BHqwxcpuaj+Tfpe36qEgH6TOeFalmwe29FPFVI8dD/8kwSkh/L F5mTKURakyqH7p7HTZsL5tV081oPc8Zhcw6WgTsM20aBasZGVh64n7z8ymr7DmxoKf4f b5zyyG5ZzvRmvkCqgatH/34pzckhrxt4dBdHvZgw2qc85AiRWTy0URCgPrLKhGur+hd+ HTlPsyTytVMieR1yLFhi7nPxMMxiv8HbSnVci5et7pq92thOn9yKXVeoS0DDVzoqN8yC Vv1A== X-Gm-Message-State: APt69E0QpEDjdc3497SBpeXYzL3uI/colQwB5hiWiDWjiysUp8tozkMt 4/3ke2lwhCPW2rvdX5mvRZ8VFQ== X-Google-Smtp-Source: AAOMgpdNrfkuAdTUL0l61g3xzaTv7U4LTAL+Wy+GomlnDlkQI4D/aWTq00XOkQl9Mjs2rgv5ocmP0A== X-Received: by 2002:a37:444a:: with SMTP id r71-v6mr22526107qka.79.1530548513009; Mon, 02 Jul 2018 09:21:53 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.56.50.111]) by smtp.gmail.com with ESMTPSA id l25-v6sm9815374qkk.49.2018.07.02.09.21.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Jul 2018 09:21:52 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id D44915CC; Mon, 2 Jul 2018 12:21:50 -0400 (-04) Date: Mon, 2 Jul 2018 12:21:50 -0400 From: Alvaro Herrera To: Stephen Frost Cc: Peter Geoghegan , Bruce Momjian , PostgreSQL Hackers , Pg Committers Subject: Re: Tips on committing Message-ID: <20180702162150.seciy5gct5vdfzaw@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180702160546.GB27724@tamriel.snowman.net> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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