GitGraphMerge Class

Merges a branch into the current branch of a Git graph with a merge commit (Mermaid merge).

public sealed class GitGraphMerge : GitGraphOperation
Inheritance
GitGraphOperation GitGraphMerge

Constructors

NameDescription
GitGraphMerge(string)Initializes a new instance of the GitGraphMerge class.

GitGraphMerge(string)

GitGraphMerge.cs

Initializes a new instance of the GitGraphMerge class.

public GitGraphMerge(string branch)

Parameters

branch string
The name of the branch to merge.

Properties

NameDescription
BranchGets the name of the branch to merge.
IdGets or sets the identifier of the merge commit, or null to generate one. Only an explicit identifier is drawn.
TagsGets the tags, drawn above the merge commit.
TypeGets or sets the type that replaces the symbol of a merge commit, or null for the merge symbol.

Gets the name of the branch to merge.

public string Branch { get; }

Property value

string

Gets or sets the identifier of the merge commit, or null to generate one. Only an explicit identifier is drawn.

public string? Id { get; set; }

Property value

string?

Gets the tags, drawn above the merge commit.

public IList<string> Tags { get; }

Property value

IList<string>

Gets or sets the type that replaces the symbol of a merge commit, or null for the merge symbol.

public GitGraphCommitType? Type { get; set; }

Property value

GitGraphCommitType?