Skip to content

Conversation

mattrubin
Copy link
Contributor

The standard library offers default implementations of many Sequence-related methods via protocol extensions. This PR switches CommitIterator to use those implementations instead of its own. This is particularly useful for the seven methods that CommitIterator exposed publicly but did not properly implement.

Implementing these methods is not required to conform to the Sequence protocol, and default implementations are available via standard library extensions on Sequence.
Default implementations are available via standard library extensions on Sequence.
@mdiep
Copy link
Contributor

mdiep commented Apr 14, 2019

👏🏻

@mdiep mdiep merged commit cb5567d into SwiftGit2:master Apr 14, 2019
@mattrubin mattrubin deleted the commit-iterator-sequence-methods branch April 26, 2019 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants