RevisionWalker - SwiftDocOrg/Git GitHub Wiki
RevisionWalker
An interface for configuring which revisions are returned by
Repository.revisions(with:)
.
public protocol RevisionWalker
Requirements
pushHead()
Push the repository's HEAD
.
func pushHead() throws
pushGlob(_:)
Push matching references.
func pushGlob(_ glob: String) throws
pushRange(_:)
Push a range of references.
func pushRange(_ range: String) throws
pushReference(named:)
Push a reference by name.
func pushReference(named name: String) throws
hideHead()
Hide the repository's HEAD
.
func hideHead() throws
hideGlob(_:)
Hide matching references.
func hideGlob(_ glob: String) throws
hideCommit(with:)
Hide a commit by ID.
func hideCommit(with id: Commit.ID) throws
hideReference(named:)
Hide a reference by name.
func hideReference(named name: String) throws
sort(with:)
Sort revisions with the provided options.
func sort(with options: RevisionSortingOptions) throws
simplifyFirstParent()
Simplify the history such that no parents other than the first for each commit will be enqueued.
func simplifyFirstParent() throws