mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
feature<WorkingCopy>: enable mergetool.writeToTemp when open external merge tool
This commit is contained in:
parent
2685a9b709
commit
730cf2a842
1 changed files with 6 additions and 4 deletions
|
@ -885,9 +885,11 @@ namespace SourceGit.UI {
|
|||
file = node.FilePath;
|
||||
}
|
||||
|
||||
await Task.Run(() => {
|
||||
Repo.RunCommand($"-c mergetool.sourcegit.cmd=\"\\\"{mergeExe}\\\" {mergeParam}\" -c mergetool.keepBackup=false -c mergetool.trustExitCode=true mergetool --tool=sourcegit {file}", null);
|
||||
});
|
||||
var cmd = $"-c mergetool.sourcegit.cmd=\"\\\"{mergeExe}\\\" {mergeParam}\" ";
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue