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(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
Properties
Name Type Argument Default Description fastForward
Boolean <optional>
false If true, merge should use fast-forward if possible
- Source:
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(options)
-
Tag the last commit of the branch.
This:
Parameters:
Name Type Argument Description options
String | Object <optional>
Message | Options of the tag
Properties
Name Type Argument Description tag
String <optional>
Message of the tag
tagColor
String <optional>
Color of the tag
tagFont
String <optional>
Font of the tag
displayTagBox
Boolean <optional>
If true, display a box around the tag
- Source:
- See: