Documentation ¶
Index ¶
- func Add(dir string, files []string) error
- func Checkout(dir, branch string) error
- func Commit(dir, message string) error
- func CreateBranch(dir, name string) error
- func EnsureCleanAndUpToDateWorkingCopy(ctx context.Context) error
- func Fetch(dir string) error
- func FetchTags(dir string) error
- func GetCurrentBranch(dir string) (string, error)
- func GetCurrentCommit(dir string) (string, error)
- func GetUncommittedChanges(dir string) ([]string, error)
- func IsBranchInSyncWithRemote(dir string, branch string) (bool, error)
- func IsDirty(dir string) (bool, error)
- func IsValid(dir string) bool
- func Pull(dir string, args ...string) error
- func Push(dir string, args ...string) error
- func PushNewBranch(dir, name string) error
- func Reset(dir string) error
- func Run(dir string, args []string) error
- func Stash(dir string) error
- func StashApply(dir string) error
- func SwitchBack(dir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBranch ¶
func GetCurrentBranch ¶
func GetCurrentCommit ¶
func GetUncommittedChanges ¶
func PushNewBranch ¶
func StashApply ¶ added in v0.35.0
func SwitchBack ¶ added in v0.34.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.