File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ public final class Git: Shell {
29
29
case tag( String )
30
30
case fetch( remote: String ? = nil , branch: String ? = nil )
31
31
case submoduleUpdate( init: Bool = false , recursive: Bool = false , rebase: Bool = false )
32
+ case submoduleForeach( recursive: Bool = false , command: String )
32
33
case renameRemote( oldName: String , newName: String )
33
34
case addRemote( name: String , url: String )
34
35
case revParse( abbrevRef: String )
@@ -122,6 +123,12 @@ public final class Git: Shell {
122
123
if rebase {
123
124
params. append ( " --rebase " )
124
125
}
126
+ case . submoduleForeach( let recursive, let command) :
127
+ params = [ Command . submodule. rawValue, " foreach " ]
128
+ if recursive {
129
+ params. append ( " --recursive " )
130
+ }
131
+ params. append ( command)
125
132
case . renameRemote( let oldName, let newName) :
126
133
params = [ Command . remote. rawValue, " rename " , oldName, newName]
127
134
case . addRemote( let name, let url) :
You can’t perform that action at this time.
0 commit comments