From: Mark Wooding Date: Tue, 29 Apr 2014 23:37:13 +0000 (+0100) Subject: Diff the changelog by hand if the commit message is `empty'. X-Git-Tag: cvs-to-git-conversion^2~2^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/commitdiff_plain/53057d8cd75183d79e14e0a4ee05042ac436a870?hp=f1ec69ced69f349c300d71b62a75d5829b6ac2e0 Diff the changelog by hand if the commit message is `empty'. --- 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