Documentation ¶
Index ¶
- Variables
- func GetHeadHash() (sha string, err error)
- func GetHeadHashShort() (sha string, err error)
- func GetLatestTag() (string, error)
- func GetLatestTagFromLocal() (tag string, err error)
- func GetLatestTagFromRemote() (tag string, err error)
- func GetRemoteURL() (string, error)
- func GetTagCommitSha(tag string) (sha string, err error)
- func GetTagCommitShaFromLocal(tag string) (sha string, err error)
- func GetTagCommitShaFromRemote(_ string) (string, error)
- func GetTagList() (tags []string, err error)
- func GetTagListFromRemote(remoteURL string, reverse bool) (tags []string, err error)
- func IsDirty() (dirty bool, err error)
- func IsHeadAtTag(tag string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyGitTag = errors.New("empty tag")
Functions ¶
func GetHeadHash ¶
func GetHeadHashShort ¶
func GetLatestTag ¶
func GetLatestTagFromLocal ¶
func GetLatestTagFromRemote ¶
get latest tag from remote, the fitting git clone depth is 1
func GetTagCommitSha ¶
func GetTagCommitShaFromRemote ¶
get tag commit sha from remote, the fitting git clone depth is 1
func GetTagList ¶
func GetTagListFromRemote ¶
func IsHeadAtTag ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.