Skip to content

Commit a26d6f4

Browse files
author
Andrew McKnight
committed
merge fixes
1 parent e4ed1fa commit a26d6f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/GitKit/Git.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public final class Git: Shell {
1616
case cmd(Command, String? = nil)
1717
case addAll
1818
case status(short: Bool = false)
19+
case clone(url: String , dirName: String? = nil)
1920
case commit(message: String, allowEmpty: Bool = false, gpgSigned: Bool = false)
2021
case writeConfig(name: String, value: String)
2122
case readConfig(name: String)
@@ -167,6 +168,12 @@ public final class Git: Shell {
167168
if let revisions = revisions {
168169
params.append(revisions)
169170
}
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)
170177
case .lsRemote(url: let url, limitToHeads: let limitToHeads):
171178
params = [Command.lsRemote.rawValue]
172179
if limitToHeads {

0 commit comments

Comments
 (0)