Skip to content

Commit 971fece

Browse files
committed
[SourceControl] Add default implementation for some new methods
1 parent d162551 commit 971fece

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Sources/SourceControl/Repository.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ public protocol RepositoryProvider {
9999
func openCheckout(at path: AbsolutePath) throws -> WorkingCheckout
100100
}
101101

102+
extension RepositoryProvider {
103+
public func checkoutExists(at path: AbsolutePath) throws -> Bool {
104+
fatalError("Unimplemented")
105+
}
106+
}
107+
102108
/// Abstract repository operations.
103109
///
104110
/// This interface provides access to an abstracted representation of a
@@ -201,6 +207,12 @@ public protocol WorkingCheckout {
201207
func areIgnored(_ paths: [AbsolutePath]) throws -> [Bool]
202208
}
203209

210+
extension WorkingCheckout {
211+
public func areIgnored(_ paths: [AbsolutePath]) throws -> [Bool] {
212+
fatalError("Unimplemented")
213+
}
214+
}
215+
204216
/// A single repository revision.
205217
public struct Revision: Hashable {
206218
/// A precise identifier for a single repository revision, in a repository-specified manner.

0 commit comments

Comments
 (0)