GitGraphBranch Class

Creates a branch from the current commit of a Git graph and checks it out (Mermaid branch).

public sealed class GitGraphBranch : GitGraphOperation
Inheritance
GitGraphOperation GitGraphBranch

Constructors

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

GitGraphBranch(string)

GitGraphBranch.cs

Initializes a new instance of the GitGraphBranch class.

public GitGraphBranch(string name)

Parameters

name string
The name of the branch.

Properties

NameDescription
NameGets the name of the branch.
OrderGets or sets the position of the branch among the branches, or null for the order of creation (Mermaid order:).

Gets the name of the branch.

public string Name { get; }

Property value

string

Gets or sets the position of the branch among the branches, or null for the order of creation (Mermaid order:).

public int? Order { get; set; }

Property value

int?