# MermaidGitGraphCommit

Describes one Mermaid git graph commit.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidGitGraphDocument.cs:63](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L63)

**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

- Property [MermaidGitGraphDocument.Commits](/api/chartforgex-mermaid-mermaidgitgraphdocument/#property-commits)

 Filter members   

    Show inherited   

 

## Constructors

 MermaidGitGraphCommit 2 overloads 

 `public MermaidGitGraphCommit(string id, string branchName, IEnumerable<string>? parentIds, GitGraphCommitType type, string label, string tag, string sourceCommitId, MermaidSourceSpan span)` [#](#constructor-ctor-string-string-collections-generic-ienumerable-system-string-chartforgex-visualblocks-gitgraphcommittype-string-string-string-chartforgex-mermaid-mermaidsourcespan) 

[MermaidGitGraphDocument.cs:63](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L63)

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)` [#](#constructor-ctor-string-string-collections-generic-ienumerable-system-string-chartforgex-visualblocks-gitgraphcommittype-string-string-string-chartforgex-mermaid-mermaidsourcespan-string) 

[MermaidGitGraphDocument.cs:59](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L59)

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.

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string Id { get; set; }` [#](#property-id) 

[MermaidGitGraphDocument.cs:88](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L88)

Gets or sets the commit id.

 `public string BranchName { get; set; }` [#](#property-branchname) 

[MermaidGitGraphDocument.cs:91](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L91)

Gets or sets the branch name.

 `public IReadOnlyList<string> ParentIds { get; }` [#](#property-parentids) 

[MermaidGitGraphDocument.cs:94](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L94)

Gets parent commit ids.

 `public GitGraphCommitType Type { get; }` [#](#property-type) 

[MermaidGitGraphDocument.cs:97](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L97)

Gets the commit type.

 `public string Label { get; set; }` [#](#property-label) 

[MermaidGitGraphDocument.cs:100](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L100)

Gets or sets the display label.

 `public string Tag { get; set; }` [#](#property-tag) 

[MermaidGitGraphDocument.cs:103](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L103)

Gets or sets the optional tag label.

 `public string SourceCommitId { get; set; }` [#](#property-sourcecommitid) 

[MermaidGitGraphDocument.cs:106](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L106)

Gets or sets the cherry-pick source commit id.

 `public string SourceParentCommitId { get; }` [#](#property-sourceparentcommitid) 

[MermaidGitGraphDocument.cs:109](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L109)

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; }` [#](#property-span) 

[MermaidGitGraphDocument.cs:112](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphDocument.cs#L112)

Gets the source span for the commit statement.

<!-- PowerForge markdown artifact sha256:E609D58592F84CDE6DB61100CA5776AFB4A8066491F0D81720C66DE170426F7A -->
