File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
11
11
import Basics
12
+ import Dispatch
13
+ import Foundation
14
+ import SourceControl
12
15
import TSCBasic
13
16
import TSCUtility
14
- import SourceControl
15
- import Dispatch
16
- import class Foundation. NSUUID
17
17
18
18
/// The error encountered during in memory git repository operations.
19
19
public enum InMemoryGitRepositoryError : Swift . Error {
@@ -108,8 +108,8 @@ public final class InMemoryGitRepository {
108
108
/// Commits the current state of the repository filesystem and returns the commit identifier.
109
109
@discardableResult
110
110
public func commit( ) throws -> String {
111
- // Create a fake hash for thie commit.
112
- let hash = String ( ( NSUUID ( ) . uuidString + NSUUID ( ) . uuidString) . prefix ( 40 ) )
111
+ // Create a fake hash for this commit.
112
+ let hash = String ( ( UUID ( ) . uuidString + UUID ( ) . uuidString) . prefix ( 40 ) )
113
113
self . lock. withLock {
114
114
self . head. hash = hash
115
115
// Store the commit in history.
You can’t perform that action at this time.
0 commit comments