From: Jeff King Date: Mon, 13 Feb 2012 22:28:10 +0000 (-0500) Subject: diff-highlight: make perl strict and warnings fatal X-Git-Tag: v1.7.10-rc0~65^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/2b21008d3c43d41588e84b45907bb8c2e86278f6?ds=inline;hp=--cc diff-highlight: make perl strict and warnings fatal These perl features can catch bugs, and we shouldn't be violating any of the strict rules or creating any warnings, so let's turn them on. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- 2b21008d3c43d41588e84b45907bb8c2e86278f6 diff --git a/contrib/diff-highlight/diff-highlight b/contrib/diff-highlight/diff-highlight index d8938982e4..c3302dd817 100755 --- a/contrib/diff-highlight/diff-highlight +++ b/contrib/diff-highlight/diff-highlight @@ -1,5 +1,8 @@ #!/usr/bin/perl +use warnings FATAL => 'all'; +use strict; + # Highlight by reversing foreground and background. You could do # other things like bold or underline if you prefer. my $HIGHLIGHT = "\x1b[7m";