Skip to content

Commit 2b21008

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6f5e880 commit 2b21008

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/diff-highlight/diff-highlight

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/perl
22

3+
use warnings FATAL => 'all';
4+
use strict;
5+
36
# Highlight by reversing foreground and background. You could do
47
# other things like bold or underline if you prefer.
58
my $HIGHLIGHT = "\x1b[7m";

0 commit comments

Comments
 (0)