summaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-01-19 15:01:44 +0100
committerWerner Koch <wk@gnupg.org>2017-01-19 15:01:44 +0100
commite926f30a1cda75f6334b79c303b5134f0441a3dc (patch)
treeece5993253deea999e7b39d6f9cb8fe842b7314d /build-aux
parentcommon: Fix buffer copy code again. (diff)
downloadgnupg2-e926f30a1cda75f6334b79c303b5134f0441a3dc.tar.xz
gnupg2-e926f30a1cda75f6334b79c303b5134f0441a3dc.zip
build: Print a commit id in the generated ChangeLog
* build-aux/gitlog-to-changelog: Print an extra line with the commit id. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/gitlog-to-changelog5
1 files changed, 4 insertions, 1 deletions
diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog
index 24a3d72ce..f70f49917 100755
--- a/build-aux/gitlog-to-changelog
+++ b/build-aux/gitlog-to-changelog
@@ -179,6 +179,7 @@ sub parse_amend_file($)
my $amend_file;
my $append_dot = 0;
my $tear_off = 0;
+ my $firstline;
GetOptions
(
help => sub { usage 0 },
@@ -338,7 +339,9 @@ sub parse_amend_file($)
# Prefix each non-empty line with a TAB.
@line = map { length $_ ? "\t$_" : '' } @line;
- print "\n", join ("\n", @line), "\n";
+ $firstline = shift @line;
+ print "\n", $firstline, "\n", "\t+ commit $sha\n";
+ print join ("\n", @line), "\n";
}
SKIPCOMMIT: