Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
difftool: remove explicit change of PATH
author
Tim Henigan
<tim.henigan@gmail.com>
Thu, 22 Mar 2012 19:52:19 +0000
(15:52 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 23 Mar 2012 18:46:26 +0000
(11:46 -0700)
Adding the script directory to PATH is not needed. The script is
located at '$(git --exec-path)', which is already on the PATH.
Signed-off-by: Tim Henigan <tim.henigan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-difftool.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
2836076
)
diff --git
a/git-difftool.perl
b/git-difftool.perl
index 4555cd8b1c5b8cda4527b328b858a015ac75d357..a399f3d2a23ea69f8e84f31070e00aeb4845dc32 100755
(executable)
--- a/
git-difftool.perl
+++ b/
git-difftool.perl
@@
-13,8
+13,6
@@
use 5.008;
use strict;
use warnings;
-use Cwd qw(abs_path);
-use File::Basename qw(dirname);
use Getopt::Long qw(:config pass_through);
use Git;
@@
-33,8
+31,6
@@
sub usage
sub setup_environment
{
- my $DIR = abs_path(dirname($0));
- $ENV{PATH} = "$DIR:$ENV{PATH}";
$ENV{GIT_PAGER} = '';
$ENV{GIT_EXTERNAL_DIFF} = 'git-difftool--helper';
}