gitutil

package
v0.34.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUnknownRevision added in v0.10.3

func IsUnknownRevision(err error) bool

Types

type GitCLI added in v0.34.0

type GitCLI struct {
	bkgitutil.GitCLI
}

GitCLI represents an active git object.

func New

func New(opts ...bkgitutil.Option) (*GitCLI, error)

New initializes a new git client.

func (*GitCLI) FullCommit added in v0.34.0

func (cli *GitCLI) FullCommit(ctx context.Context) (string, error)

func (*GitCLI) GitDir added in v0.34.0

func (cli *GitCLI) GitDir(ctx context.Context) (string, error)

func (*GitCLI) IsDirty added in v0.34.0

func (cli *GitCLI) IsDirty(ctx context.Context) bool

func (*GitCLI) IsInsideWorkTree added in v0.34.0

func (cli *GitCLI) IsInsideWorkTree(ctx context.Context) bool

func (*GitCLI) RemoteURL added in v0.34.0

func (cli *GitCLI) RemoteURL(ctx context.Context) (string, error)

func (*GitCLI) ShortCommit added in v0.34.0

func (cli *GitCLI) ShortCommit(ctx context.Context) (string, error)

func (*GitCLI) Tag added in v0.34.0

func (cli *GitCLI) Tag(ctx context.Context) (string, error)

func (*GitCLI) WorkTree added in v0.34.0

func (cli *GitCLI) WorkTree(ctx context.Context) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL