chiark
/
gitweb
/
~mdw
/
adns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95360db
)
Wrap long single-line comment messages.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 29 Apr 2014 23:20:26 +0000
(
00:20
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 29 Apr 2014 23:20:26 +0000
(
00:20
+0100)
convert
patch
|
blob
|
blame
|
history
diff --git
a/convert
b/convert
index 7541ff12c258bc65ce3c53e71115103a09e4bd23..6c7278d4bda4d21dcb3fd563f484335b293b38ee 100755
(executable)
--- a/
convert
+++ b/
convert
@@
-92,6
+92,12
@@
cat >$tmp/msg-filter <<'FEND'
perl -ne '
$out .= $_;
END {
+ if ($out !~ /\n.*\n/) {
+ $out = `fmt <<'\''EOF'\''
+$out
+EOF
+`;
+ }
if ($out =~ m/^\@\@/s &&
($out =~ m/^\+(?!u?adns).*\w.*$/m ||
$out =~ m/^\-(?!u?adns).*\w.*$/m)) {