GitGraphCherryPick Class
Copies a commit of another branch onto the current branch of a Git graph (Mermaid cherry-pick).
public sealed class GitGraphCherryPick : GitGraphOperation- Inheritance
GitGraphOperationGitGraphCherryPick
Constructors
| Name | Description |
|---|---|
| GitGraphCherryPick(string) | Initializes a new instance of the GitGraphCherryPick class. |
GitGraphCherryPick(string)
GitGraphCherryPick.csInitializes a new instance of the GitGraphCherryPick class.
public GitGraphCherryPick(string commitId)Parameters
commitIdstring- The identifier of the commit to copy.
Properties
| Name | Description |
|---|---|
| CommitId | Gets the identifier of the commit to copy. |
| Parent | Gets or sets the parent of a merge commit to copy the changes from, or null. A merge commit needs one. |
| ShowDefaultTag | Gets or sets a value that indicates whether a cherry-pick without tags has the tag cherry-pick: and the identifier it copies. The default is true. |
| Tags | Gets the tags, drawn above the new commit. Without tags, the commit has the tag cherry-pick: and the identifier it copies, unless GitGraphCherryPick.ShowDefaultTag is false. |
CommitId
GitGraphCherryPick.csParent
GitGraphCherryPick.csShowDefaultTag
GitGraphCherryPick.csGets the tags, drawn above the new commit. Without tags, the commit has the tag cherry-pick: and the identifier it copies, unless GitGraphCherryPick.ShowDefaultTag is false.