]> Savannah Git Hosting - gnulib.git/commitdiff
gitlog-to-changelog: add --until
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Nov 2014 17:29:35 +0000 (09:29 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Nov 2014 17:30:13 +0000 (09:30 -0800)
* build-aux/gitlog-to-changelog: Support new --until option.
Need described by Eli Zaretskii in: http://bugs.gnu.org/19113

ChangeLog
build-aux/gitlog-to-changelog

index 16dc6209600577acc39458062ee38e3773d1ae27..84733849ae97e2b510bd83faca8c0392998ea999 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <eggert@cs.ucla.edu>
 
        extern-inline: update commentary about GCC bugs
index 78afff4e8e0bb6f88022973c028b45a1ba72d691..190f7b5dbe2ac97ce8b4682402d751a03efca7a6 100755 (executable)
@@ -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.