Skip to content

Commit

Permalink
Finish adding primary associated type for RevWalk
Browse files Browse the repository at this point in the history
  • Loading branch information
Uncommon committed Feb 9, 2023
1 parent e03f6e2 commit 5f5fa26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Xit/Repository/XTRepository+Commits.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension XTRepository: CommitStorage
invalidateIndex()
}

public func walker() -> (any RevWalk)?
public func walker() -> (any RevWalk<GitOID>)?
{
return GitRevWalk(repository: gitRepo)
}
Expand Down
2 changes: 1 addition & 1 deletion XitTests/CommitHistoryTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class StringRepository: CommitStorage

func commit(message: String, amend: Bool) throws {}

func walker() -> (any RevWalk)? { nil }
func walker() -> (any RevWalk<StringOID>)? { nil }
}


Expand Down
2 changes: 1 addition & 1 deletion XitTests/EmptyRepoProtocols.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ extension EmptyCommitStorage

func commit(message: String, amend: Bool) throws {}

func walker() -> (any RevWalk)? { nil }
func walker() -> (any RevWalk<ID>)? { nil }
}

protocol EmptyCommitReferencing: CommitReferencing where ID == StringOID {}
Expand Down

0 comments on commit 5f5fa26

Please sign in to comment.