git

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 10 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(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 GetDefaultBranch

func GetDefaultBranch(dir string) (string, error)

func GetUncommittedChanges

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

func IsBranchInSyncWithRemote

func IsBranchInSyncWithRemote(dir string, branch 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

Types

This section is empty.

Directories

Path Synopsis
pr

Jump to

Keyboard shortcuts

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