Table of Contents

Class GitAdd

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Stages selected paths or all working-tree changes in the repository index.

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

Inheritance

Implements

Properties

All

Stages tracked, modified, deleted, and untracked paths; cannot be combined with DotNetDo.GitAdd.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 stage; cannot be combined with DotNetDo.GitAdd.All.

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

Property Value

IReadOnlyList<RelativePath>

Verbose

Whether Git reports each added path.

public bool Verbose { get; init; }

Property Value

bool