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 )
@@ -159,6 +160,12 @@ public final class Git: Shell {
159
160
if let revisions = revisions {
160
161
params. append ( revisions)
161
162
}
163
+ case . revParse( let abbrevRef, let revision) :
164
+ params = [ Command . revParse. rawValue]
165
+ if abbrevRef {
166
+ params. append ( " --abbrev-ref " )
167
+ }
168
+ params. append ( revision)
162
169
case . lsRemote( url: let url, limitToHeads: let limitToHeads) :
163
170
params = [ Command . lsRemote. rawValue]
164
171
if limitToHeads {
You can’t perform that action at this time.
0 commit comments