new Branch(options)
Branch
This:
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | Options of branch Properties
|
- 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(optionsopt)
Add a commit
This:
Parameters:
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
string | BranchCommitOptions |
<optional> |
Message | Options of commit Properties
|
- Source:
- See:
delete()
Delete this branch
This:
- Source:
merge(targetopt, commitOptionsopt) → {Branch}
Merge branch
This:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
target |
Branch |
<optional> |
this.parent.HEAD | |||||||||||
commitOptions |
string | object |
<optional> |
Message | Options of commit Properties
|
- Source:
- See:
Returns:
this
- Type
- Branch
pushPath()
Push a new point to path. This method will combine duplicate points and reject reversed points.
This:
- Source:
render()
Render the branch
This:
- Source:
tag(optionsopt)
Tag the last commit of the branch.
This:
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
string | object |
<optional> |
Message | Options of the tag Properties
|
- Source:
- See: