Documentation ¶
Index ¶
- func Branch(path string) (string, error)
- func FindLatestCommit(repoPath string) (string, error)
- func FindLatestTag(repoPath string, tag string) (verzion.Verzion, error)
- func FindShortCommitSha(path string) (string, error)
- func FindTagByHash(repoPath string, hash string) (verzion.Verzion, error)
- func FromFileTags(repoPath string) (verzion.Verzion, error)
- func FromPackedRefs(repoPath string) (verzion.Verzion, error)
- func FromPatchBranch(path string) (verzion.Verzion, error)
- func StubHead(t *testing.T, tempDir string, input []byte)
- func StubPackedRefs(t *testing.T, tempDir string)
- func StubRefsHead(t *testing.T, tempDir string, branch string, input []byte)
- func StubRefsTags(t *testing.T, tempDir string, tags []Tag)
- func StubVersion(t *testing.T, tempDir string, version string)
- type Slice
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindLatestCommit ¶
FindLatestCommit determine the latest commit sha
func FindShortCommitSha ¶
func FindTagByHash ¶
FindTagByHsh returns the tag version if the commit hash has a tag
func FromFileTags ¶
FromFileTags parses local file tags and returns the greatest Verzion.
func FromPackedRefs ¶
FromPackedRefs returns the last parsable packed ref.
func StubPackedRefs ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.