Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
checkout: drop intimate knowledge of newly created worktree
[gitweb.git]
/
contrib
/
diff-highlight
/
diff-highlight
diff --git
a/contrib/diff-highlight/diff-highlight
b/contrib/diff-highlight/diff-highlight
index c4404d49c9968608510809309b26e2d08eec8810..69a652e7b2cc4ed2e03ead8aec4b3abeebf20b14 100755
(executable)
--- a/
contrib/diff-highlight/diff-highlight
+++ b/
contrib/diff-highlight/diff-highlight
@@
-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;