Skip to content

Commit 4590a30

Browse files
committed
Renamed method.
1 parent 67e28e2 commit 4590a30

File tree

1 file changed

+9
-9
lines changed
  • Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor

1 file changed

+9
-9
lines changed

Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor/Git.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static class Git
1818
public static string GitPath => "/usr/local/bin/git";
1919
#endif
2020

21-
private static Task<Process> GenerateProcess(string path, string arguments)
21+
private static Task<Process> GenerateProcessAsync(string path, string arguments)
2222
{
2323

2424
return Task.Run(() => Process.Start(new ProcessStartInfo
@@ -36,7 +36,7 @@ private static Task<Process> GenerateProcess(string path, string arguments)
3636
public static async Task<string> Branch()
3737
{
3838

39-
var process = await GenerateProcess(GitPath, "rev-parse --abbrev-ref HEAD");
39+
var process = await GenerateProcessAsync(GitPath, "rev-parse --abbrev-ref HEAD");
4040

4141
return process?.StandardOutput.ReadLine();
4242

@@ -45,7 +45,7 @@ public static async Task<string> Branch()
4545
public static async Task<string[]> Branches()
4646
{
4747

48-
var process = await GenerateProcess(GitPath, "for-each-ref --format='%(refname:short)' refs/heads");
48+
var process = await GenerateProcessAsync(GitPath, "for-each-ref --format='%(refname:short)' refs/heads");
4949

5050
var branches = new List<string>();
5151

@@ -63,7 +63,7 @@ public static async Task<string[]> Branches()
6363
public static async Task<string[]> ChangedFiles()
6464
{
6565

66-
var process = await GenerateProcess(GitPath, "status --short --untracked-files=no --porcelain");
66+
var process = await GenerateProcessAsync(GitPath, "status --short --untracked-files=no --porcelain");
6767

6868
var changes = new List<string>();
6969

@@ -81,14 +81,14 @@ public static async Task<string[]> ChangedFiles()
8181
public static async Task CheckoutBranch(string branch)
8282
{
8383

84-
await GenerateProcess(GitPath, $"checkout {branch}");
84+
await GenerateProcessAsync(GitPath, $"checkout {branch}");
8585

8686
}
8787

8888
public static async Task DiscardChanges(string path)
8989
{
9090

91-
var process = await GenerateProcess(GitPath, $@"checkout ""{path}""");
91+
var process = await GenerateProcessAsync(GitPath, $@"checkout ""{path}""");
9292
9393
if (process?.StandardError.ReadLine() is string line && line.StartsWith("error: pathspec"))
9494
{
@@ -102,14 +102,14 @@ public static async Task DiscardChanges(string path)
102102
public static async Task Init()
103103
{
104104

105-
await GenerateProcess(GitPath, "init");
105+
await GenerateProcessAsync(GitPath, "init");
106106

107107
}
108108

109109
public static async Task<string> Status()
110110
{
111111

112-
var process = await GenerateProcess(GitPath, "status");
112+
var process = await GenerateProcessAsync(GitPath, "status");
113113

114114
if (process?.StandardError.ReadLine() is string line && line.StartsWith("fatal: not a git repository"))
115115
{
@@ -125,7 +125,7 @@ public static async Task<string> Status()
125125
public static async Task<string[]> UntrackedFiles()
126126
{
127127

128-
var process = await GenerateProcess(GitPath, "ls-files --others --exclude-standard");
128+
var process = await GenerateProcessAsync(GitPath, "ls-files --others --exclude-standard");
129129

130130
var changes = new List<string>();
131131

0 commit comments

Comments
 (0)