Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
difftool: Allow specifying unconfigured commands with --extcmd
[gitweb.git]
/
git-difftool.perl
diff --git
a/git-difftool.perl
b/git-difftool.perl
index 8c836e4c76528e52b010dd37e904f132d5386000..f8ff245756c237894523c01068170955f988df75 100755
(executable)
--- a/
git-difftool.perl
+++ b/
git-difftool.perl
@@
-62,6
+62,10
@@
sub generate_command
$skip_next = 1;
next;
}
+ if ($arg =~ /^--extcmd=/) {
+ $ENV{GIT_DIFFTOOL_EXTCMD} = substr($arg, 9);
+ next;
+ }
if ($arg =~ /^--tool=/) {
$ENV{GIT_DIFF_TOOL} = substr($arg, 7);
next;