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 @@ -16,6 +16,7 @@ public final class Git: Shell {
16
16
case cmd( Command , String ? = nil )
17
17
case addAll
18
18
case status( short: Bool = false )
19
+ case clone( url: String , dirName: String ? = nil )
19
20
case commit( message: String , allowEmpty: Bool = false , gpgSigned: Bool = false )
20
21
case writeConfig( name: String , value: String )
21
22
case readConfig( name: String )
@@ -167,6 +168,12 @@ public final class Git: Shell {
167
168
if let revisions = revisions {
168
169
params. append ( revisions)
169
170
}
171
+ case . revParse( let abbrevRef, let revision) :
172
+ params = [ Command . revParse. rawValue]
173
+ if abbrevRef {
174
+ params. append ( " --abbrev-ref " )
175
+ }
176
+ params. append ( revision)
170
177
case . lsRemote( url: let url, limitToHeads: let limitToHeads) :
171
178
params = [ Command . lsRemote. rawValue]
172
179
if limitToHeads {
You can’t perform that action at this time.
0 commit comments