mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-17 08:24:59 +00:00
code_style: general cleanup (#1415)
* code_style: general cleanup * code_style: whitespace cleanup
This commit is contained in:
parent
35eda489be
commit
ffac71b15f
89 changed files with 161 additions and 243 deletions
|
@ -244,7 +244,7 @@ namespace SourceGit.ViewModels
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (firstRemoteBranch == null)
|
||||
firstRemoteBranch = remoteBranch;
|
||||
}
|
||||
|
@ -347,7 +347,7 @@ namespace SourceGit.ViewModels
|
|||
log = _repo.CreateLog("Save as Patch");
|
||||
|
||||
var folder = picker[0];
|
||||
var folderPath = folder is { Path: { IsAbsoluteUri: true } path } ? path.LocalPath : folder?.Path.ToString();
|
||||
var folderPath = folder is { Path: { IsAbsoluteUri: true } path } ? path.LocalPath : folder.Path.ToString();
|
||||
var succ = false;
|
||||
for (var i = 0; i < selected.Count; i++)
|
||||
{
|
||||
|
@ -707,7 +707,7 @@ namespace SourceGit.ViewModels
|
|||
log = _repo.CreateLog("Save as Patch");
|
||||
|
||||
var folder = selected[0];
|
||||
var folderPath = folder is { Path: { IsAbsoluteUri: true } path } ? path.LocalPath : folder?.Path.ToString();
|
||||
var folderPath = folder is { Path: { IsAbsoluteUri: true } path } ? path.LocalPath : folder.Path.ToString();
|
||||
var saveTo = GetPatchFileName(folderPath, commit);
|
||||
var succ = await Task.Run(() => new Commands.FormatPatch(_repo.FullPath, commit.SHA, saveTo).Use(log).Exec());
|
||||
if (succ)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue