Merge branch 'jk/colors'
[gitweb.git] / contrib / diff-highlight / diff-highlight
index 54b359b7b77b4eb29efc64632b789a3c607c63b6..ffefc31a98a26dfd65d188bbb547cc114231c13d 100755 (executable)
@@ -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;