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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Feb 13, 2012 at 17:28 UTC 2b21008d3c43d41588e84b45907bb8c2e86278f6
1 file changed +3
contrib/diff-highlight/diff-highlight
+3
@@ -1,5 +1,8 @@
1 #!/usr/bin/perl
2
3 +use warnings FATAL => 'all';
4 +use strict;
5 +
6 # Highlight by reversing foreground and background. You could do
7 # other things like bold or underline if you prefer.
8 my $HIGHLIGHT = "\x1b[7m";