Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.
Mattt edited this page Jul 27, 2020 · 4 revisions

Branch

A named reference to a commit.

public final class Branch: Reference

Inheritance

Reference

Properties

commit

A pointer to the referenced commit.

var commit: Commit?

shortName

The short name of the branch.

var shortName: String

isHEAD

Whether HEAD points to the branch.

var isHEAD: Bool

isCheckedOut

Whether the branch is checked out.

var isCheckedOut: Bool

isRemote

Whether the branch is a remote tracking branch.

var isRemote: Bool

isLocal

Whether the branch is local.

var isLocal: Bool
Clone this wiki locally