Table of Contents

Class GitReset

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Resets selected or all index entries to HEAD without changing working-tree files.

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

Inheritance

Implements

Properties

All

Unstages every path beneath the repository root; cannot be combined with DotNetDo.GitReset.Paths.

public bool All { get; init; }

Property Value

bool

CommandParts

Gets every canonically ordered rendered command fragment.

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

Property Value

IReadOnlyList<string?>

Paths

Repository-relative paths to unstage; cannot be combined with DotNetDo.GitReset.All.

public IReadOnlyList<RelativePath> Paths { get; init; }

Property Value

IReadOnlyList<RelativePath>

Quiet

Whether Git reports only errors.

public bool Quiet { get; init; }

Property Value

bool