git

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(dir string, files []string) error

func Checkout

func Checkout(dir, branch string) error

func Commit

func Commit(dir, message string) error

func CreateBranch

func CreateBranch(dir, name string) error

func EnsureCleanAndUpToDateWorkingCopy

func EnsureCleanAndUpToDateWorkingCopy(ctx context.Context) error

func Fetch added in v0.31.4

func Fetch(dir string) error

func FetchTags added in v0.28.0

func FetchTags(dir string) error

func GetCurrentBranch

func GetCurrentBranch(dir string) (string, error)

func GetCurrentCommit

func GetCurrentCommit(dir string) (string, error)

func GetUncommittedChanges

func GetUncommittedChanges(dir string) ([]string, error)

func IsBranchInSyncWithRemote

func IsBranchInSyncWithRemote(dir string, branch string) (bool, error)

func IsDirty added in v0.35.0

func IsDirty(dir string) (bool, error)

func IsValid

func IsValid(dir string) bool

func Pull

func Pull(dir string, args ...string) error

func Push

func Push(dir string, args ...string) error

func PushNewBranch

func PushNewBranch(dir, name string) error

func Reset

func Reset(dir string) error

func Run

func Run(dir string, args []string) error

func Stash added in v0.35.0

func Stash(dir string) error

func StashApply added in v0.35.0

func StashApply(dir string) error

func SwitchBack added in v0.34.0

func SwitchBack(dir string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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