diff options
author | Jeff King <peff@peff.net> | 2012-02-13 17:28:10 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-13 15:57:06 -0800 |
commit | 2b21008d3c43d41588e84b45907bb8c2e86278f6 (patch) | |
tree | 92aabfb42bcfca717438a631a6fc7d6d69703f58 /contrib/diff-highlight | |
parent | 6f5e880c68099b185e60b2492c75e506e16d8292 (diff) | |
download | git-2b21008d3c43d41588e84b45907bb8c2e86278f6.tar.gz git-2b21008d3c43d41588e84b45907bb8c2e86278f6.tar.xz |
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>
Diffstat (limited to 'contrib/diff-highlight')
-rwxr-xr-x | contrib/diff-highlight/diff-highlight | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/diff-highlight/diff-highlight b/contrib/diff-highlight/diff-highlight index d8938982e..c3302dd81 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"; |