Class
MermaidGitGraphCommit
ChartForgeX.Mermaid
Describes one Mermaid git graph commit.
Inheritance
- object
- MermaidGitGraphCommit
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property MermaidGitGraphDocument.Commits
Constructors
MermaidGitGraphCommit 2 overloads
public MermaidGitGraphCommit(string id, string branchName, IEnumerable<string>? parentIds, GitGraphCommitType type, string label, string tag, string sourceCommitId, MermaidSourceSpan span) #Initializes a Mermaid git graph commit.
Parameters
- id string
- branchName string
- parentIds System.Collections.Generic.IEnumerable<string>?
- type ChartForgeX.VisualBlocks.GitGraphCommitType
- label string
- tag string
- sourceCommitId string
- span ChartForgeX.Mermaid.MermaidSourceSpan
public MermaidGitGraphCommit(string id, string branchName, IEnumerable<string>? parentIds, GitGraphCommitType type, string label, string tag, string sourceCommitId, MermaidSourceSpan span, string sourceParentCommitId) #Initializes a Mermaid git graph commit with its selected cherry-pick source parent.
Parameters
- id string
- The new commit identity.
- branchName string
- The branch receiving this commit.
- parentIds System.Collections.Generic.IEnumerable<string>?
- Graph edges to earlier commits, independently from the selected source parent.
- type ChartForgeX.VisualBlocks.GitGraphCommitType
- The displayed commit type.
- label string
- The commit caption.
- tag string
- The tag caption.
- sourceCommitId string
- The cherry-picked source identity, or an empty string.
- span ChartForgeX.Mermaid.MermaidSourceSpan
- The source statement location.
- sourceParentCommitId string
- The authored immediate parent selected for a cherry-pick, or an empty string.
Inherited Methods
Properties
public IReadOnlyList<string> ParentIds { get; } #Gets parent commit ids.
public string SourceCommitId { get; set; } #Gets or sets the cherry-pick source commit id.
public string SourceParentCommitId { get; } #Gets the authored immediate parent selected when cherry-picking the source commit; this is not a graph parent edge of the new commit.
public MermaidSourceSpan Span { get; } #Gets the source span for the commit statement.