@@ -14,23 +14,23 @@ public Checkout(string repo)
14
14
15
15
public bool Branch ( string branch , Action < string > onProgress )
16
16
{
17
- Args = $ "checkout --progress { branch } ";
17
+ Args = $ "checkout --recurse-submodules -- progress { branch } ";
18
18
TraitErrorAsOutput = true ;
19
19
_outputHandler = onProgress ;
20
20
return Exec ( ) ;
21
21
}
22
22
23
23
public bool Branch ( string branch , string basedOn , Action < string > onProgress )
24
24
{
25
- Args = $ "checkout --progress -b { branch } { basedOn } ";
25
+ Args = $ "checkout --recurse-submodules -- progress -b { branch } { basedOn } ";
26
26
TraitErrorAsOutput = true ;
27
27
_outputHandler = onProgress ;
28
28
return Exec ( ) ;
29
29
}
30
30
31
31
public bool UseTheirs ( List < string > files )
32
32
{
33
- StringBuilder builder = new StringBuilder ( ) ;
33
+ var builder = new StringBuilder ( ) ;
34
34
builder . Append ( "checkout --theirs --" ) ;
35
35
foreach ( var f in files )
36
36
{
@@ -44,7 +44,7 @@ public bool UseTheirs(List<string> files)
44
44
45
45
public bool UseMine ( List < string > files )
46
46
{
47
- StringBuilder builder = new StringBuilder ( ) ;
47
+ var builder = new StringBuilder ( ) ;
48
48
builder . Append ( "checkout --ours --" ) ;
49
49
foreach ( var f in files )
50
50
{
@@ -70,20 +70,6 @@ public bool Commit(string commitId, Action<string> onProgress)
70
70
return Exec ( ) ;
71
71
}
72
72
73
- public bool Files ( List < string > files )
74
- {
75
- StringBuilder builder = new StringBuilder ( ) ;
76
- builder . Append ( "checkout -f -q --" ) ;
77
- foreach ( var f in files )
78
- {
79
- builder . Append ( " \" " ) ;
80
- builder . Append ( f ) ;
81
- builder . Append ( "\" " ) ;
82
- }
83
- Args = builder . ToString ( ) ;
84
- return Exec ( ) ;
85
- }
86
-
87
73
protected override void OnReadline ( string line )
88
74
{
89
75
_outputHandler ? . Invoke ( line ) ;
0 commit comments