]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-difftool.perl
difftool: Allow specifying unconfigured commands with --extcmd
[git.git] / git-difftool.perl
index 8c836e4c76528e52b010dd37e904f132d5386000..f8ff245756c237894523c01068170955f988df75 100755 (executable)
@@ -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;