Table of Contents

Class GitCommit

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Creates a commit from staged changes, optionally staging tracked modifications first.

public sealed record GitCommit : GitCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<GitCommand>, IEquatable<GitCommit>

Inheritance

Implements

Properties

All

Stages modifications and deletions to tracked files before committing; untracked files remain unstaged.

public bool All { get; init; }

Property Value

bool

Author

The author identity used for the commit.

public GitAuthor? Author { get; init; }

Property Value

GitAuthor?

CommandParts

Gets every canonically ordered rendered command fragment.

protected override IReadOnlyList<string?> CommandParts { get; }

Property Value

IReadOnlyList<string?>

Message

The required non-empty commit message.

public string? Message { get; init; }

Property Value

string?

Quiet

Whether Git suppresses the successful commit summary.

public bool Quiet { get; init; }

Property Value

bool