chiark / gitweb /
Diff the changelog by hand if the commit message is `empty'.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 29 Apr 2014 23:37:13 +0000 (00:37 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 29 Apr 2014 23:37:13 +0000 (00:37 +0100)
convert

diff --git a/convert b/convert
index 6c7278d4bda4d21dcb3fd563f484335b293b38ee..78d4ac367d25b10e40de389875e275556586948a 100755 (executable)
--- 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