From 53057d8cd75183d79e14e0a4ee05042ac436a870 Mon Sep 17 00:00:00 2001 Message-Id: <53057d8cd75183d79e14e0a4ee05042ac436a870.1718536088.git.mdw@distorted.org.uk> From: Mark Wooding Date: Wed, 30 Apr 2014 00:37:13 +0100 Subject: [PATCH 1/1] Diff the changelog by hand if the commit message is `empty'. Organization: Straylight/Edgeware From: Mark Wooding --- convert | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/convert b/convert index 6c7278d..78d4ac3 100755 --- a/convert +++ b/convert @@ -92,6 +92,10 @@ cat >$tmp/msg-filter <<'FEND' perl -ne ' $out .= $_; END { + if ($out =~ /\*\*\* empty log message/) { + ($out = `git diff $ENV{GIT_COMMIT}^ $ENV{GIT_COMMIT} -- changelog`) + =~ s/\A.*\n\@\@ /\@\@ /s; + } if ($out !~ /\n.*\n/) { $out = `fmt <<'\''EOF'\'' $out -- [mdw]