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>
This commit is contained in:
Werner Koch 2017-01-19 15:01:44 +01:00
parent e031b3c16c
commit e926f30a1c
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 4 additions and 1 deletions

View File

@ -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: