Documentation ¶
Index ¶
- func Add(log *log.Logger, files ...string) error
- func Checkout(log *log.Logger, branch string) error
- func Clone(log *log.Logger, repoUrl, folder string) error
- func Commit(log *log.Logger, message string) error
- func Diff(log *log.Logger, a, b string) (string, error)
- func Fetch(log *log.Logger, remote string) error
- func FetchTags(log *log.Logger, remote string) error
- func GetConfig(log *log.Logger, key string) (string, error)
- func GetLatestLocalCommit(log *log.Logger, folder, branch string, short bool) (string, error)
- func GetLatestRemoteCommit(log *log.Logger, repoUrl, branch string) (string, error)
- func GetLatestRemoteTag(log *log.Logger, repoUrl string) (string, error)
- func GetLatestTag(log *log.Logger, folder string) (string, error)
- func GetLocalBranchName(log *log.Logger) (string, error)
- func GetMergeBase(log *log.Logger) (string, error)
- func GetRemoteOriginUrl(log *log.Logger) (string, error)
- func Pull(log *log.Logger, remote string) error
- func Push(log *log.Logger, remote string, tags bool) error
- func Status(log *log.Logger, porcelain bool) (string, error)
- func Tag(log *log.Logger, tag string) error
- type TagList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLatestLocalCommit ¶
Gets the latest commit hash from the given local git folder.
func GetLatestRemoteCommit ¶
Gets the latest commit hash from the given remote git repo + optional branch.
func GetLatestRemoteTag ¶
Gets the latest tags from the given remote git repo.
func GetLatestTag ¶
Gets the latest tag from the repo in given folder.
func GetLocalBranchName ¶
Gets the name of the current branch
func GetRemoteOriginUrl ¶
Gets the config value for "remote.origin.url"
Types ¶
Click to show internal directories.
Click to hide internal directories.