Logo DataHubClient

Branch Type

A branch in a DataHub repository, together with the commit it points at. See the .

Constructors

Constructor Description

Branch(name, isDefault, isProtected, merged, commit)

Full Usage: Branch(name, isDefault, isProtected, merged, commit)

Parameters:
    name : string
    isDefault : bool
    isProtected : bool
    merged : bool
    commit : Commit

Returns: Branch
name : string
isDefault : bool
isProtected : bool
merged : bool
commit : Commit
Returns: Branch

Instance members

Instance member Description

this.Commit

Full Usage: this.Commit

Returns: Commit

The commit the branch currently points at.

Returns: Commit

this.Default

Full Usage: this.Default

Returns: bool

Whether this is the repository's default branch.

Returns: bool

this.Merged

Full Usage: this.Merged

Returns: bool

Whether the branch has been merged into the default branch.

Returns: bool

this.Name

Full Usage: this.Name

Returns: string

The branch name.

Returns: string

this.Protected

Full Usage: this.Protected

Returns: bool

Whether the branch is protected against force-pushes and deletion.

Returns: bool

Type something to start searching.