diff-highlight: use correct /dev/null for UNIX and Windows
authorChris. Webster <chris@webstech.net>
Wed, 31 Oct 2018 14:58:00 +0000 (23:58 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 May 2019 03:18:44 +0000 (12:18 +0900)
commit6804ba3a58ff2999533af28ca5af3901e30fd1f2
treebb9cefd463f6a3daec88476a30bdc9b6a357f376
parent8104ec994ea3849a968b4667d072fedd1e688642
diff-highlight: use correct /dev/null for UNIX and Windows

Use File::Spec->devnull() for output redirection to avoid messages
when Windows version of Perl is first in path.  The message 'The
system cannot find the path specified.' is displayed each time git is
run to get colors.

Signed-off-by: Chris. Webster <chris@webstech.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/diff-highlight/DiffHighlight.pm