git

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecAdapter

type ExecAdapter struct {
	// contains filtered or unexported fields
}

func New

func New(workDir string) *ExecAdapter

func (*ExecAdapter) Add

func (a *ExecAdapter) Add(paths []string) error

func (*ExecAdapter) Branch

func (a *ExecAdapter) Branch(name string) (string, error)

func (*ExecAdapter) Checkout

func (a *ExecAdapter) Checkout(name string) (string, error)

func (*ExecAdapter) Commit

func (a *ExecAdapter) Commit(message string) (string, error)

func (*ExecAdapter) CommitsFromTag

func (a *ExecAdapter) CommitsFromTag(tag string) (string, error)

func (*ExecAdapter) CreateBackup

func (a *ExecAdapter) CreateBackup(operation string, stashUntracked bool) (domain.Backup, error)

func (*ExecAdapter) CreateRelease

func (a *ExecAdapter) CreateRelease(tagName, changelog string) (string, error)

func (*ExecAdapter) CurrentBranch

func (a *ExecAdapter) CurrentBranch() (string, error)

func (*ExecAdapter) DeleteBackup

func (a *ExecAdapter) DeleteBackup(backup domain.Backup) error

func (*ExecAdapter) DeleteBranch

func (a *ExecAdapter) DeleteBranch(name string) (string, error)

func (*ExecAdapter) DeleteTag added in v1.3.0

func (a *ExecAdapter) DeleteTag(name string) (string, error)

func (*ExecAdapter) DeleteTagRemote added in v1.3.0

func (a *ExecAdapter) DeleteTagRemote(name string) (string, error)

func (*ExecAdapter) Diff

func (a *ExecAdapter) Diff(paths ...string) (string, error)

func (*ExecAdapter) DiffStaged

func (a *ExecAdapter) DiffStaged(paths ...string) (string, error)

func (*ExecAdapter) Fetch

func (a *ExecAdapter) Fetch() (string, error)

func (*ExecAdapter) IsGHAuthenticated

func (a *ExecAdapter) IsGHAuthenticated() (bool, error)

func (*ExecAdapter) IsRepo

func (a *ExecAdapter) IsRepo() bool

func (*ExecAdapter) LatestTag

func (a *ExecAdapter) LatestTag() (string, error)

func (*ExecAdapter) ListBranches

func (a *ExecAdapter) ListBranches(pattern ...string) (string, error)

func (*ExecAdapter) ListTags

func (a *ExecAdapter) ListTags(pattern ...string) ([]string, error)

func (*ExecAdapter) ListUntracked

func (a *ExecAdapter) ListUntracked() ([]string, error)

func (*ExecAdapter) Log

func (a *ExecAdapter) Log(limit int, paths ...string) (string, error)

func (*ExecAdapter) LogFull

func (a *ExecAdapter) LogFull(limit int) (string, error)

func (*ExecAdapter) Merge

func (a *ExecAdapter) Merge(branch string) (string, error)

func (*ExecAdapter) Pull

func (a *ExecAdapter) Pull() (string, error)

func (*ExecAdapter) Push

func (a *ExecAdapter) Push() (string, error)

func (*ExecAdapter) PushTag added in v1.3.0

func (a *ExecAdapter) PushTag(name string) (string, error)

func (*ExecAdapter) PushTags added in v1.3.0

func (a *ExecAdapter) PushTags() (string, error)

func (*ExecAdapter) Remove

func (a *ExecAdapter) Remove(paths []string) error

func (*ExecAdapter) RenameBranch added in v1.4.2

func (a *ExecAdapter) RenameBranch(oldName, newName string) (string, error)

func (*ExecAdapter) Reset

func (a *ExecAdapter) Reset(mode string, commit string) (string, error)

func (*ExecAdapter) RestoreBackup

func (a *ExecAdapter) RestoreBackup(backup domain.Backup) error

func (*ExecAdapter) Stash

func (a *ExecAdapter) Stash() (string, error)

func (*ExecAdapter) StashPop

func (a *ExecAdapter) StashPop() (string, error)

func (*ExecAdapter) Status

func (a *ExecAdapter) Status() (domain.Status, error)

func (*ExecAdapter) Switch

func (a *ExecAdapter) Switch(name string) error

func (*ExecAdapter) Tag

func (a *ExecAdapter) Tag(name, message string) (string, error)

func (*ExecAdapter) TagExists

func (a *ExecAdapter) TagExists(name string) (bool, error)

Jump to

Keyboard shortcuts

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