Skip to content
ChartForgeX
Class

MermaidGitGraphCommit

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

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

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 required
branchName string required
parentIds System.Collections.Generic.IEnumerable<string>? required
type ChartForgeX.VisualBlocks.GitGraphCommitType required
label string required
tag string required
sourceCommitId string required
span ChartForgeX.Mermaid.MermaidSourceSpan required
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 required
The new commit identity.
branchName string required
The branch receiving this commit.
parentIds System.Collections.Generic.IEnumerable<string>? required
Graph edges to earlier commits, independently from the selected source parent.
type ChartForgeX.VisualBlocks.GitGraphCommitType required
The displayed commit type.
label string required
The commit caption.
tag string required
The tag caption.
sourceCommitId string required
The cherry-picked source identity, or an empty string.
span ChartForgeX.Mermaid.MermaidSourceSpan required
The source statement location.
sourceParentCommitId string required
The authored immediate parent selected for a cherry-pick, or an empty string.

Properties

public string Id { get; set; } #

Gets or sets the commit id.

public string BranchName { get; set; } #

Gets or sets the branch name.

public IReadOnlyList<string> ParentIds { get; } #

Gets parent commit ids.

public GitGraphCommitType Type { get; } #

Gets the commit type.

public string Label { get; set; } #

Gets or sets the display label.

public string Tag { get; set; } #

Gets or sets the optional tag label.

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.