summaryrefslogtreecommitdiffstats
path: root/contrib/diff-highlight/diff-highlight.perl
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/diff-highlight/diff-highlight.perl')
-rw-r--r--contrib/diff-highlight/diff-highlight.perl8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/diff-highlight/diff-highlight.perl b/contrib/diff-highlight/diff-highlight.perl
new file mode 100644
index 0000000..9b3e9c1
--- /dev/null
+++ b/contrib/diff-highlight/diff-highlight.perl
@@ -0,0 +1,8 @@
+package main;
+
+# Some scripts may not realize that SIGPIPE is being ignored when launching the
+# pager--for instance scripts written in Python.
+$SIG{PIPE} = 'DEFAULT';
+
+DiffHighlight::highlight_stdin();
+exit 0;