git

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Runner executil.Runner
}

func (Client) InitRepo

func (c Client) InitRepo(ctx context.Context, path string) error

func (Client) IsDirty

func (c Client) IsDirty(ctx context.Context, repoRoot string) (bool, error)

func (Client) IsPathTracked

func (c Client) IsPathTracked(ctx context.Context, repoRoot, path string) (bool, error)

func (Client) IsRepo

func (c Client) IsRepo(ctx context.Context, path string) (bool, error)

func (Client) LastCommitInfo

func (c Client) LastCommitInfo(ctx context.Context, repoRoot, path string) (ports.CommitInfo, error)

func (Client) Pull

func (c Client) Pull(ctx context.Context, repoRoot string) error

func (Client) Push

func (c Client) Push(ctx context.Context, repoRoot string) error

func (Client) TopLevel

func (c Client) TopLevel(ctx context.Context, path string) (string, error)

Jump to

Keyboard shortcuts

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