Class: Branch

Branch

new Branch(options)

Branch

This:
Parameters:
Name Type Description
options Object

Options of branch

Properties
Name Type Argument Default Description
parent GitGraph

GitGraph constructor

parentBranch Branch <optional>

Parent branch

name String <optional>
"no-name"

Branch name

Source:

Methods

branch(options) → {Branch}

Create new branch

This:
Parameters:
Name Type Description
options String | Object

Branch name | Options of Branch

Source:
See:
Returns:

New Branch

Type
Branch

calculColumn()

Calcul column

This:
Source:

checkout()

Checkout onto this branch

This:
Source:

commit(options)

Add a commit

This:
Parameters:
Name Type Argument Description
options String | Object <optional>

Message | Options of commit

Properties
Name Type Argument Description
detailId String <optional>

Id of detail DOM Element

Source:
See:

delete()

Delete this branch

This:
Source:

merge(target, commitOptions) → {Branch}

Merge branch

This:
Parameters:
Name Type Argument Default Description
target Branch <optional>
this.parent.HEAD
commitOptions String | Object <optional>

Message | Options of commit

Source:
Returns:

this

Type
Branch

render()

Render the branch

This:
Source: