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() + "\""); }
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() + "\""); }