[Pkg-gnupg-commit] [gnupg2] 93/116: build: Print a commit id in the generated ChangeLog
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Jan 24 04:40:58 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit e926f30a1cda75f6334b79c303b5134f0441a3dc
Author: Werner Koch <wk at gnupg.org>
Date: Thu Jan 19 15:01:44 2017 +0100
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 at gnupg.org>
---
build-aux/gitlog-to-changelog | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog
index 24a3d72..f70f499 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:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list