Table of Contents

Class GitTagOptions

Namespace
Ando.Operations
Assembly
ando.dll

Options for 'git tag' command.

public class GitTagOptions
Inheritance
GitTagOptions
Inherited Members

Properties

Annotated

Create an annotated tag (recommended for releases).

public bool Annotated { get; set; }

Property Value

bool

Message

Message for annotated tag. Defaults to tag name if not set.

public string? Message { get; set; }

Property Value

string

SkipIfExists

Skip creating the tag if it already exists (instead of failing).

public bool SkipIfExists { get; set; }

Property Value

bool

Methods

AsLightweight()

Creates a lightweight tag instead of annotated.

public GitTagOptions AsLightweight()

Returns

GitTagOptions

WithMessage(string)

Sets the tag message.

public GitTagOptions WithMessage(string message)

Parameters

message string

Returns

GitTagOptions

WithSkipIfExists()

Skip creating the tag if it already exists (shows warning instead of failing).

public GitTagOptions WithSkipIfExists()

Returns

GitTagOptions