difftool: stop appending '.exe' to git
The system call to Git works the same whether or not ".exe" is appended to "git". The extra code is not necessary. Signed-off-by: Tim Henigan <tim.henigan@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Tim Henigan committed
Mar 22, 2012 at 15:52 UTC
11bf87076a686dbfe696dd21333486cab55e6fbb
1 file changed
+1
-10
git-difftool.perl
+1
-10
@@ -35,15 +35,6 @@ sub setup_environment
35
$ENV{GIT_EXTERNAL_DIFF} = 'git-difftool--helper';
36
}
37
38
-sub exe
39
-{
40
- my $exe = shift;
41
- if ($^O eq 'MSWin32' || $^O eq 'msys') {
42
- return "$exe.exe";
43
- }
44
- return $exe;
45
-}
46
-
38
# parse command-line options. all unrecognized options and arguments
39
# are passed through to the 'git diff' command.
40
my ($difftool_cmd, $extcmd, $gui, $help, $prompt);
@@ -89,7 +80,7 @@ if (defined($prompt)) {
80
}
81
82
setup_environment();
92
-my @command = (exe('git'), 'diff', @ARGV);
83
+my @command = ('git', 'diff', @ARGV);
84
85
# ActiveState Perl for Win32 does not implement POSIX semantics of
86
# exec* system call. It just spawns the given executable and finishes