mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
code_style: move private member/functions (except static readonly members) after all public members
This commit is contained in:
@@ -97,8 +97,6 @@ namespace SourceGit.Native
|
||||
});
|
||||
}
|
||||
|
||||
private static readonly IBackend _backend;
|
||||
|
||||
public static void OpenInFleet(string repo)
|
||||
{
|
||||
if (string.IsNullOrEmpty(FleetExecutableFile))
|
||||
@@ -115,5 +113,7 @@ namespace SourceGit.Native
|
||||
UseShellExecute = false,
|
||||
});
|
||||
}
|
||||
|
||||
private static readonly IBackend _backend;
|
||||
}
|
||||
}
|
||||
@@ -189,7 +189,15 @@ namespace SourceGit.Native
|
||||
}
|
||||
}
|
||||
|
||||
private static void OpenFolderAndSelectFile(string folderPath)
|
||||
public void OpenWithDefaultEditor(string file)
|
||||
{
|
||||
var info = new FileInfo(file);
|
||||
var start = new ProcessStartInfo("cmd", $"/c start {info.FullName}");
|
||||
start.CreateNoWindow = true;
|
||||
Process.Start(start);
|
||||
}
|
||||
|
||||
private void OpenFolderAndSelectFile(string folderPath)
|
||||
{
|
||||
var pidl = ILCreateFromPathW(folderPath);
|
||||
|
||||
@@ -202,13 +210,5 @@ namespace SourceGit.Native
|
||||
ILFree(pidl);
|
||||
}
|
||||
}
|
||||
|
||||
public void OpenWithDefaultEditor(string file)
|
||||
{
|
||||
var info = new FileInfo(file);
|
||||
var start = new ProcessStartInfo("cmd", $"/c start {info.FullName}");
|
||||
start.CreateNoWindow = true;
|
||||
Process.Start(start);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user