# GitGraphCommit

Describes one commit in a git graph visual block.

 Class  

`ChartForgeX.VisualBlocks`

**Namespace**

`ChartForgeX.VisualBlocks`

**Assembly**

`ChartForgeX`

**Source**

[GitGraphBlock.cs:75](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/GitGraphBlock.cs#L75)

**Modifiers**

sealed

Describes one commit in a git graph visual block.

## Inheritance

- object
- GitGraphCommit

## 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 [GitGraphBlock.Commits](/api/chartforgex-visualblocks-gitgraphblock/#property-commits)

 Filter members   

    Show inherited   

 

## Constructors

 `public GitGraphCommit(string id, string branchName, IEnumerable<string>? parentIds = null, GitGraphCommitType type = Normal, string label = "", string tag = "", string sourceCommitId = "")` [#](#constructor-ctor-string-string-collections-generic-ienumerable-system-string-chartforgex-visualblocks-gitgraphcommittype-string-string-string) 

[GitGraphBlock.cs:75](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/GitGraphBlock.cs#L75)

Initializes a git graph commit.

Parameters

**id string required**

**branchName string required**

**parentIds System.Collections.Generic.IEnumerable<string>? = null optional**

**type ChartForgeX.VisualBlocks.GitGraphCommitType = Normal optional**

**label string = "" optional**

**tag string = "" optional**

**sourceCommitId string = "" optional**

## 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) 

[GitGraphBlock.cs:89](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/GitGraphBlock.cs#L89)

Gets or sets the stable commit id.

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

[GitGraphBlock.cs:92](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/GitGraphBlock.cs#L92)

Gets or sets the branch lane name.

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

[GitGraphBlock.cs:95](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/GitGraphBlock.cs#L95)

Gets parent commit ids.

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

[GitGraphBlock.cs:98](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/GitGraphBlock.cs#L98)

Gets or sets the commit type.

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

[GitGraphBlock.cs:101](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/GitGraphBlock.cs#L101)

Gets or sets the optional display label.

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

[GitGraphBlock.cs:104](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/GitGraphBlock.cs#L104)

Gets or sets the optional tag label.

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

[GitGraphBlock.cs:107](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualBlocks/GitGraphBlock.cs#L107)

Gets or sets the source commit id for cherry-pick commits.

<!-- PowerForge markdown artifact sha256:459892C839123CFE0EBFDCCF9EDEF767EA369A538D959423CDF3AC07532D8AFA -->
