From 98750de1cf618026c0e99de59f248943b26816b6 Mon Sep 17 00:00:00 2001 From: Andrew McKnight Date: Mon, 4 Aug 2025 17:11:39 -0800 Subject: [PATCH] fix(rev-list): remove unused branch parameter --- Sources/GitKit/Git.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/GitKit/Git.swift b/Sources/GitKit/Git.swift index 3de46fc..a0a114e 100644 --- a/Sources/GitKit/Git.swift +++ b/Sources/GitKit/Git.swift @@ -38,7 +38,7 @@ public final class Git: Shell { /// - parameter revision the name of the revision to parse. can be symbolic (`@`), human-readable (`origin/HEAD`) or a commit SHA hash case revParse(abbrevRef: Bool, revision: String) - case revList(branch: String, count: Bool = false, revisions: String? = nil) + case revList(count: Bool = false, revisions: String? = nil) case raw(String) case lsRemote(url: String, limitToHeads: Bool = false) @@ -153,7 +153,7 @@ public final class Git: Shell { params = [Command.config.rawValue, "--add", name, value] case .readConfig(let name): params = [Command.config.rawValue, "--get", name] - case .revList(_, let count, let revisions): + case .revList(let count, let revisions): params = [Command.revList.rawValue] if count { params.append("--count")