mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 21:30:37 +08:00
code_style: remove unnecessary namespace using
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -19,7 +19,7 @@ namespace SourceGit.Commands
|
||||
if (!rs.IsSuccess)
|
||||
return outs;
|
||||
|
||||
var items = rs.StdOut.Split('\0', System.StringSplitOptions.RemoveEmptyEntries);
|
||||
var items = rs.StdOut.Split('\0', StringSplitOptions.RemoveEmptyEntries);
|
||||
foreach (var item in items)
|
||||
{
|
||||
var current = new Models.Stash();
|
||||
@@ -37,7 +37,8 @@ namespace SourceGit.Commands
|
||||
current.SHA = line;
|
||||
break;
|
||||
case 1:
|
||||
ParseParent(line, ref current);
|
||||
if (line.Length > 6)
|
||||
current.Parents.AddRange(line.Split(' ', StringSplitOptions.RemoveEmptyEntries));
|
||||
break;
|
||||
case 2:
|
||||
current.Time = ulong.Parse(line);
|
||||
@@ -63,13 +64,5 @@ namespace SourceGit.Commands
|
||||
}
|
||||
return outs;
|
||||
}
|
||||
|
||||
private void ParseParent(string data, ref Models.Stash current)
|
||||
{
|
||||
if (data.Length < 8)
|
||||
return;
|
||||
|
||||
current.Parents.AddRange(data.Split(separator: ' ', options: StringSplitOptions.RemoveEmptyEntries));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user