checkout: drop intimate knowledge of newly created worktree
[gitweb.git] / contrib / diff-highlight / diff-highlight
index c4404d49c9968608510809309b26e2d08eec8810..69a652e7b2cc4ed2e03ead8aec4b3abeebf20b14 100755 (executable)
@@ -14,6 +14,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;