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)
1919 if ( ! rs . IsSuccess )
2020 return outs ;
2121
22- var items = rs . StdOut . Split ( '\0 ' , System . StringSplitOptions . RemoveEmptyEntries ) ;
22+ var items = rs . StdOut . Split ( '\0 ' , StringSplitOptions . RemoveEmptyEntries ) ;
2323 foreach ( var item in items )
2424 {
2525 var current = new Models . Stash ( ) ;
@@ -37,7 +37,8 @@ public QueryStashes(string repo)
3737 current . SHA = line ;
3838 break ;
3939 case 1 :
40- ParseParent ( line , ref current ) ;
40+ if ( line . Length > 6 )
41+ current . Parents . AddRange ( line . Split ( ' ' , StringSplitOptions . RemoveEmptyEntries ) ) ;
4142 break ;
4243 case 2 :
4344 current . Time = ulong . Parse ( line ) ;
@@ -63,13 +64,5 @@ public QueryStashes(string repo)
6364 }
6465 return outs ;
6566 }
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- }
7467 }
7568}
You can’t perform that action at this time.
0 commit comments