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:
2a87cbc
)
Avoid printing removed lines unless necessary; avoid version headers.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 29 Apr 2014 23:13:28 +0000
(
00:13
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 29 Apr 2014 23:13:28 +0000
(
00:13
+0100)
convert
patch
|
blob
|
blame
|
history
diff --git
a/convert
b/convert
index eb1ca3c46772a8fb2b53eeed71428683bd81c515..7541ff12c258bc65ce3c53e71115103a09e4bd23 100755
(executable)
--- a/
convert
+++ b/
convert
@@
-93,7
+93,8
@@
perl -ne '
$out .= $_;
END {
if ($out =~ m/^\@\@/s &&
$out .= $_;
END {
if ($out =~ m/^\@\@/s &&
- $out =~ m/^(?:\+ )?[^\@ ].*\w.*$/m) {
+ ($out =~ m/^\+(?!u?adns).*\w.*$/m ||
+ $out =~ m/^\-(?!u?adns).*\w.*$/m)) {
print $&, "\n\n" or die $!;
}
print $out or die $!;
print $&, "\n\n" or die $!;
}
print $out or die $!;