From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#19113: Generate a ChangeLog file from commit logs Date: Thu, 20 Nov 2014 09:43:59 -0800 Organization: UCLA Computer Science Department Message-ID: <546E285F.7040604@cs.ucla.edu> References: <546D2E75.6090701@cs.ucla.edu> <837fyp7tvi.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070900070405040906030304" X-Trace: ger.gmane.org 1416505531 22078 80.91.229.3 (20 Nov 2014 17:45:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2014 17:45:31 +0000 (UTC) Cc: 19113@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 20 18:45:25 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XrVnH-0007mA-8j for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Nov 2014 18:45:23 +0100 Original-Received: from localhost ([::1]:36694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrVnG-0002GS-FO for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Nov 2014 12:45:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrVn7-0002FD-91 for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 12:45:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrVmz-0007N2-0f for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 12:45:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrVmy-0007ME-Sh for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 12:45:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XrVmy-0004ad-78 for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 12:45:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Nov 2014 17:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19113 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 19113-submit@debbugs.gnu.org id=B19113.141650545017543 (code B ref 19113); Thu, 20 Nov 2014 17:45:03 +0000 Original-Received: (at 19113) by debbugs.gnu.org; 20 Nov 2014 17:44:10 +0000 Original-Received: from localhost ([127.0.0.1]:39770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrVm5-0004Ys-Qj for submit@debbugs.gnu.org; Thu, 20 Nov 2014 12:44:10 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:44480) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrVm2-0004Yj-Ba for 19113@debbugs.gnu.org; Thu, 20 Nov 2014 12:44:07 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 84086A600F1; Thu, 20 Nov 2014 09:44:03 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X-FosO1IlGIO; Thu, 20 Nov 2014 09:43:59 -0800 (PST) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 414ACA60082; Thu, 20 Nov 2014 09:43:59 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <837fyp7tvi.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96333 This is a multi-part message in MIME format. --------------070900070405040906030304 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 11/20/2014 07:51 AM, Eli Zaretskii wrote: > What's the plan for preventing the generated ChangeLog file from > becoming too large? I added an --until option to gitlog-to-changelog so that we can generate a set of ChangeLogs rather than a single ChangeLog. We can uses this once we want to generate multiple ChangeLogs. I'll CC: this email to bug-gnulib since the source belongs to gnulib. Patch attached. --------------070900070405040906030304 Content-Type: text/x-patch; name="0001-gitlog-to-changelog-add-until.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-gitlog-to-changelog-add-until.patch" >From 44545ded16ccb5985107c02ab0c9effedc9b0b0c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 20 Nov 2014 09:29:35 -0800 Subject: [PATCH] gitlog-to-changelog: add --until * build-aux/gitlog-to-changelog: Support new --until option. Need described by Eli Zaretskii in: http://bugs.gnu.org/19113 --- ChangeLog | 6 ++++++ build-aux/gitlog-to-changelog | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 16dc620..8473384 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-11-20 Paul Eggert + + gitlog-to-changelog: add --until + * build-aux/gitlog-to-changelog: Support new --until option. + Need described by Eli Zaretskii in: http://bugs.gnu.org/19113 + 2014-11-14 Paul Eggert extern-inline: update commentary about GCC bugs diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index 78afff4..190f7b5 100755 --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog @@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}' if 0; # Convert git log output to ChangeLog format. -my $VERSION = '2012-07-29 06:11'; # UTC +my $VERSION = '2014-11-20 17:25'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook @@ -72,6 +72,7 @@ OPTIONS: directory can be derived. --since=DATE convert only the logs since DATE; the default is to convert all log entries. + --until=DATE convert only the logs older than DATE. --format=FMT set format string for commit subject and body; see 'man git-log' for the list of format metacharacters; the default is '%s%n%b%n' @@ -220,6 +221,7 @@ sub git_dir_option($) { my $since_date; + my $until_date; my $format_string = '%s%n%b%n'; my $amend_file; my $append_dot = 0; @@ -232,6 +234,7 @@ sub git_dir_option($) help => sub { usage 0 }, version => sub { print "$ME version $VERSION\n"; exit }, 'since=s' => \$since_date, + 'until=s' => \$until_date, 'format=s' => \$format_string, 'amend=s' => \$amend_file, 'append-dot' => \$append_dot, @@ -243,6 +246,8 @@ sub git_dir_option($) defined $since_date and unshift @ARGV, "--since=$since_date"; + defined $until_date + and unshift @ARGV, "--until=$until_date"; # This is a hash that maps an SHA1 to perl code (i.e., s/old/new/) # that makes a correction in the log or attribution of that commit. -- 1.9.3 --------------070900070405040906030304--