예제 #1
0
        private string getGitCommand(IIntegratedDiffTool diffTool, string toolPath)
        {
            var path = System.IO.Path.Combine(toolPath, diffTool.GetToolCommand());

            path = path.Replace(System.IO.Path.DirectorySeparatorChar, System.IO.Path.AltDirectorySeparatorChar);
            return("\"\\\"" + path + "\\\"" + diffTool.GetToolCommandArguments() + "\"");
        }
예제 #2
0
        private string getGitCommand(IIntegratedDiffTool diffTool)
        {
            string toolPath = getToolPath(diffTool);

            if (toolPath == null)
            {
                throw new DiffToolIntegrationException(String.Format("Cannot find installation location in registry"));
            }

            var path = System.IO.Path.Combine(toolPath, diffTool.GetToolCommand());

            path = path.Replace(System.IO.Path.DirectorySeparatorChar, System.IO.Path.AltDirectorySeparatorChar);
            return("\"\\\"" + path + "\\\"" + diffTool.GetToolCommandArguments() + "\"");
        }