feature<WorkingCopy>: enable mergetool.writeToTemp when open external merge tool

This commit is contained in:
leo 2020-11-18 14:49:08 +08:00
parent 2685a9b709
commit 730cf2a842

View file

@ -885,9 +885,11 @@ namespace SourceGit.UI {
file = node.FilePath; file = node.FilePath;
} }
await Task.Run(() => { var cmd = $"-c mergetool.sourcegit.cmd=\"\\\"{mergeExe}\\\" {mergeParam}\" ";
Repo.RunCommand($"-c mergetool.sourcegit.cmd=\"\\\"{mergeExe}\\\" {mergeParam}\" -c mergetool.keepBackup=false -c mergetool.trustExitCode=true mergetool --tool=sourcegit {file}", null); cmd += "-c mergetool.writeToTemp=true -c mergetool.keepBackup=false -c mergetool.trustExitCode=true ";
}); cmd += $"mergetool --tool=sourcegit {file}";
await Task.Run(() => Repo.RunCommand(cmd, null));
} }
private async void UseTheirs(object sender, RoutedEventArgs e) { private async void UseTheirs(object sender, RoutedEventArgs e) {