Documentation ¶
Index ¶
- func CollectGitRepositoryInformation(dir string, data map[string]string) (map[string]string, error)
- func FindGitReference(refType string, refName string) string
- func FindRepositoryDirectory(currentDirectory string) string
- func GetReferenceByName(projectDirectory string, refType string, refName string) (string, error)
- func GetVCSRepositoryInformation(dir string) (map[string]string, error)
- func GetVCSRepositoryType(dir string) string
- func IsGitRepository(directory string) bool
- type Commit
- type Release
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectGitRepositoryInformation ¶
CollectGitRepositoryInformation retrieves normalized variables of the git repository
func FindGitReference ¶
FindGitReference returns the unique reference
func FindRepositoryDirectory ¶
func GetReferenceByName ¶
GetReferenceByName returns a unique identifier for a refType (tag, branch) / reFName (branch name / tag name)
func GetVCSRepositoryInformation ¶
GetVCSRepositoryInformation detects the repository type and gathers normalized information from the repository
func GetVCSRepositoryType ¶
GetVCSRepositoryType returns a short name of the repository type inside the directory (git, svn, unknown)
func IsGitRepository ¶
IsGitRepository checks if the target directory contains a git repository
Types ¶
type Commit ¶
func FindCommitsBetweenRefs ¶
FindCommitsBetweenRefs finds all git commits between two references
type Release ¶
func FindLatestGitRelease ¶
Click to show internal directories.
Click to hide internal directories.