summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-01-18 09:45:01 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-01-18 09:45:01 +0100
commit2a9862a89875f9060f95547b6fd4274c86738617 (patch)
tree193fa2af9d8266a90d1edc49e168f9af4a2bcafd
parenta6e60819ba512d6bf7376c543f8c40c9389eb4d7 (diff)
downloadautomake-2a9862a89875f9060f95547b6fd4274c86738617.tar.gz
gitlog-to-changelog: update from upstream
* lib/gitlog-to-changelog: Update from gnulib upstream. The only changes should be cosmetic and/or minor fixlets.
-rwxr-xr-xlib/gitlog-to-changelog16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/gitlog-to-changelog b/lib/gitlog-to-changelog
index 61edde1e3..38c6f3aaa 100755
--- a/lib/gitlog-to-changelog
+++ b/lib/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-01-17 21:54'; # UTC
+my $VERSION = '2012-01-18 07:50'; # 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
@@ -194,7 +194,7 @@ sub parse_amend_file($)
my $format_string = '%s%n%b%n';
my $amend_file;
my $append_dot = 0;
- my $no_cluster = 0;
+ my $cluster = 1;
GetOptions
(
help => sub { usage 0 },
@@ -203,7 +203,7 @@ sub parse_amend_file($)
'format=s' => \$format_string,
'amend=s' => \$amend_file,
'append-dot' => \$append_dot,
- 'no-cluster' => \$no_cluster,
+ 'cluster!' => \$cluster,
) or usage 1;
@@ -312,11 +312,11 @@ sub parse_amend_file($)
# would be different from the previous date/name/email/coauthors header,
# or if this or the previous entry consists of two or more paragraphs,
# then print the header.
- if ($no_cluster
- or $date_line ne $prev_date_line
- or "@coauthors" ne "@prev_coauthors"
- or $multi_paragraph
- or $prev_multi_paragraph)
+ if ( ! $cluster
+ || $date_line ne $prev_date_line
+ || "@coauthors" ne "@prev_coauthors"
+ || $multi_paragraph
+ || $prev_multi_paragraph)
{
$prev_date_line eq ''
or print "\n";