From 5f5fa264a2a001e23dc1dcd25383df9b481dd210 Mon Sep 17 00:00:00 2001 From: David Catmull Date: Thu, 9 Feb 2023 16:25:57 -0700 Subject: [PATCH] Finish adding primary associated type for RevWalk --- Xit/Repository/XTRepository+Commits.swift | 2 +- XitTests/CommitHistoryTest.swift | 2 +- XitTests/EmptyRepoProtocols.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Xit/Repository/XTRepository+Commits.swift b/Xit/Repository/XTRepository+Commits.swift index e9563eeb..39f0db10 100644 --- a/Xit/Repository/XTRepository+Commits.swift +++ b/Xit/Repository/XTRepository+Commits.swift @@ -26,7 +26,7 @@ extension XTRepository: CommitStorage invalidateIndex() } - public func walker() -> (any RevWalk)? + public func walker() -> (any RevWalk)? { return GitRevWalk(repository: gitRepo) } diff --git a/XitTests/CommitHistoryTest.swift b/XitTests/CommitHistoryTest.swift index a4992546..83d86c1c 100644 --- a/XitTests/CommitHistoryTest.swift +++ b/XitTests/CommitHistoryTest.swift @@ -28,7 +28,7 @@ class StringRepository: CommitStorage func commit(message: String, amend: Bool) throws {} - func walker() -> (any RevWalk)? { nil } + func walker() -> (any RevWalk)? { nil } } diff --git a/XitTests/EmptyRepoProtocols.swift b/XitTests/EmptyRepoProtocols.swift index ff6e69bf..ac5ac938 100644 --- a/XitTests/EmptyRepoProtocols.swift +++ b/XitTests/EmptyRepoProtocols.swift @@ -65,7 +65,7 @@ extension EmptyCommitStorage func commit(message: String, amend: Bool) throws {} - func walker() -> (any RevWalk)? { nil } + func walker() -> (any RevWalk)? { nil } } protocol EmptyCommitReferencing: CommitReferencing where ID == StringOID {}