Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommitHashes ¶
GetCommitHashes returns the commit hashes of a given repository ordered by the `git.LogOrderCommitterTime`. If `commitLimit` is 0 all commits will be returned.
func GetGitCandidateList ¶
GetGitCandidateList returns either git tags or git commit SHAs
func GetTags ¶
func GetTags(repoPath string, tagLimit int, sortTagBy SortOption) ([]string, error)
GetTags returns the commit tags of a given repository ordered alphabetically or by version. If `commitLimit` is 0 all tags will be returned.
func IsValidSortValue ¶
IsValidSortValue function tries to cast the string to SortedTagBy type
Types ¶
type SortOption ¶
type SortOption string
SortOption type for sort order
const ( // SortOptionVersion sorts by version SortOptionVersion SortOption = "version" // SortOptionAlphabetic sorts in alphabetical order SortOptionAlphabetic SortOption = "alphabetic" )
Click to show internal directories.
Click to hide internal directories.