Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZVRYA-0004Y8-QW for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Aug 2015 21:51:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZVRYA-0002co-CI for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Aug 2015 21:51:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZVRWs-00017h-8w for pgsql-hackers@postgresql.org; Fri, 28 Aug 2015 21:49:46 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZVRWl-0005Mb-7M for pgsql-hackers@postgresql.org; Fri, 28 Aug 2015 21:49:44 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1ZVRWh-0005lJ-Jd; Fri, 28 Aug 2015 17:49:35 -0400 Date: Fri, 28 Aug 2015 17:49:35 -0400 From: Bruce Momjian To: Tom Lane Cc: Alvaro Herrera , Andres Freund , PostgreSQL-development Subject: Re: Adding commit details to SGML release notes Message-ID: <20150828214935.GB18678@momjian.us> References: <20150828211200.GE21830@momjian.us> <20150828212706.GG2912@alvherre.pgsql> <1486.1440797558@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1486.1440797558@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Fri, Aug 28, 2015 at 05:32:38PM -0400, Tom Lane wrote: > Alvaro Herrera writes: > > Bruce Momjian wrote: > >> To simplify the creation of the release note with the commit tag as an > >> SGML comment, I think src/tools/git_changelog should be modified to > >> output this string. The format "trunc" feature was added in git 1.8.3. > >> Is that old enough for everyone? > > > Since it's only needed by people preparing the release notes, I would > > guess it's okay --- evidently Tom was able to use it. > > Well, that's only because I'm running a hand-installed git rather than > what RHEL6 comes with. Yes, I am running git 1.7.2.5 on Debian Squeeze, but I will be upgrading in the next month, before the next major release notes are due, so I would avoid the problem that way. :-) > > Maybe an option is to use trunc when git 1.8.3 or newer is detected, and > > plain (no trunc) otherwise? > > Personally I find that truncated output to be pretty unreadable, and > would strongly object to changing git_changelog so that that was the only > possible format. However, I have no objection to making it an option > ("git_changelog --short", or so), and that would dodge any concerns about > failing on git versions without the feature. Well, my idea would be to change this git_changelog line: Branch: master [01051a987] 2015-07-09 11:38:34 +0300 to output something in the new 'trunc' format, so we have it right next to the release note text and the release notes easily get that comment. If we _don't_ do that, how do you easily get those lines into the release notes? I can't imagine how hard it was for Andres to add that text to the 9.5 release notes: http://www.postgresql.org/message-id/E1ZA0lx-0006FM-PU@gemulon.postgresql.org -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers