Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

RevisionWalker

mattt edited this page Jul 27, 2020 · 2 revisions

RevisionWalker

An interface for configuring which revisions are returned by Repository.revisions(with:).

public protocol RevisionWalker

Seealso: `Repository.revisions(with:)`

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

Clone this wiki locally