Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/colors'
[gitweb.git]
/
contrib
/
diff-highlight
/
diff-highlight
diff --git
a/contrib/diff-highlight/diff-highlight
b/contrib/diff-highlight/diff-highlight
index 54b359b7b77b4eb29efc64632b789a3c607c63b6..ffefc31a98a26dfd65d188bbb547cc114231c13d 100755
(executable)
--- a/
contrib/diff-highlight/diff-highlight
+++ b/
contrib/diff-highlight/diff-highlight
@@
-25,6
+25,10
@@
my @removed;
my @added;
my $in_hunk;
+# Some scripts may not realize that SIGPIPE is being ignored when launching the
+# pager--for instance scripts written in Python.
+$SIG{PIPE} = 'DEFAULT';
+
while (<>) {
if (!$in_hunk) {
print;