>From 6ef4d29a1a67c5f2cd9b92a1b5294a260bb4d0e0 Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Thu, 25 Feb 2021 00:58:25 +0100 Subject: [PATCH] gitlog-to-changelog: output SHA in "empty commit message" warning * build-aux/gitlog-to-changelog: Add $sha to above warning diagnostic. --- ChangeLog | 5 +++++ build-aux/gitlog-to-changelog | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ddfb37935..4b5d7c1ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-02-25 Bernhard Voelker + + gitlog-to-changelog: output SHA in "empty commit message" warning + * build-aux/gitlog-to-changelog: Add $sha to above warning diagnostic. + 2021-02-24 Paul Eggert glob: include libc-config.h in a more-standard way diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index de76f658d..9ff15f601 100755 --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog @@ -35,7 +35,7 @@ eval 'exec perl -wSx "$0" "$@"' if 0; -my $VERSION = '2020-04-04 15:07'; # UTC +my $VERSION = '2021-02-24 23:42'; # 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 @@ -455,7 +455,8 @@ sub git_dir_option($) # If there were any lines if (@line == 0) { - warn "$ME: warning: empty commit message:\n $date_line\n"; + warn "$ME: warning: empty commit message:\n" + . " commit $sha\n $date_line\n"; } else { -- 2.30.1