adds claude-generated commit messages and a recent commits panel to the git view - adds log tailing in the explorer, branch merging and a clean up button
This commit is contained in:
@@ -22,6 +22,8 @@ struct RecordedCall: Sendable, Equatable {
|
||||
var executable: String
|
||||
var arguments: [String]
|
||||
var environment: [String: String]?
|
||||
var directory: URL? = nil
|
||||
var input: String? = nil
|
||||
}
|
||||
|
||||
/// Records every call and answers from a script; for tests of argument construction and error paths.
|
||||
@@ -39,7 +41,14 @@ final class ScriptedRunner: ProcessRunning, @unchecked Sendable {
|
||||
}
|
||||
|
||||
func run(_ executable: String, arguments: [String], in directory: URL?, environment: [String: String]?) async throws -> ProcessResult {
|
||||
let call = RecordedCall(executable: executable, arguments: arguments, environment: environment)
|
||||
let call = RecordedCall(executable: executable, arguments: arguments, environment: environment, directory: directory)
|
||||
lock.withLock { recorded.append(call) }
|
||||
return try await respond(call)
|
||||
}
|
||||
|
||||
func run(_ executable: String, arguments: [String], in directory: URL?, environment: [String: String]?,
|
||||
input: String) async throws -> ProcessResult {
|
||||
let call = RecordedCall(executable: executable, arguments: arguments, environment: environment, directory: directory, input: input)
|
||||
lock.withLock { recorded.append(call) }
|
||||
return try await respond(call)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user