File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public QueryStashes(string repo)
19
19
if ( ! rs . IsSuccess )
20
20
return outs ;
21
21
22
- var items = rs . StdOut . Split ( '\0 ' , System . StringSplitOptions . RemoveEmptyEntries ) ;
22
+ var items = rs . StdOut . Split ( '\0 ' , StringSplitOptions . RemoveEmptyEntries ) ;
23
23
foreach ( var item in items )
24
24
{
25
25
var current = new Models . Stash ( ) ;
@@ -37,7 +37,8 @@ public QueryStashes(string repo)
37
37
current . SHA = line ;
38
38
break ;
39
39
case 1 :
40
- ParseParent ( line , ref current ) ;
40
+ if ( line . Length > 6 )
41
+ current . Parents . AddRange ( line . Split ( ' ' , StringSplitOptions . RemoveEmptyEntries ) ) ;
41
42
break ;
42
43
case 2 :
43
44
current . Time = ulong . Parse ( line ) ;
@@ -63,13 +64,5 @@ public QueryStashes(string repo)
63
64
}
64
65
return outs ;
65
66
}
66
-
67
- private void ParseParent ( string data , ref Models . Stash current )
68
- {
69
- if ( data . Length < 8 )
70
- return ;
71
-
72
- current . Parents . AddRange ( data . Split ( separator : ' ' , options : StringSplitOptions . RemoveEmptyEntries ) ) ;
73
- }
74
67
}
75
68
}
You can’t perform that action at this time.
0 commit comments