Documentation
¶
Index ¶
- func CommitFiles(sList []string, m string) (err error)
- func CreateTag(tag, msg string) (err error)
- func Describe(hash string, exact ...bool) (string, error)
- func FileChanged(file string) bool
- func GetLatestTag(noFetch bool) (tag string, err error)
- func HasGit() bool
- func RemoveFromStaging(sList []string, ignoreErrors bool) (err error)
- type RestoreCwdFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitFiles ¶
CommitFiles adds the given files to staging and commits them with the given message
func FileChanged ¶
FileChanged checks if a file changed and should be added to staging
func GetLatestTag ¶
GetLatestTag Returns the latest tag for the git repo related to the working directory
func RemoveFromStaging ¶
RemoveFromStaging removes the given files from the stagin area
Types ¶
type RestoreCwdFunc ¶
type RestoreCwdFunc func() error
RestoreCwdFunc defines the signature of the closure to restore the working directory
func MoveToRootDir ¶
func MoveToRootDir() (RestoreCwdFunc, error)
MoveToRootDir changes working directory to git's root
Click to show internal directories.
Click to hide internal directories.