Documentation
¶
Index ¶
- func CheckoutGitBranch(repoPath, branchName string) error
- func CloneRepoToTemp(repoURL string) (string, error)
- func GetCurrentBranch(path string) (string, error)
- func IsGitRepo(path string) bool
- func ListGitBranches(repoPath string) ([]string, error)
- func ListTags(repo *git.Repository) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutGitBranch ¶
CheckoutGitBranch switches the repository at repoPath to the branch specified by branchName.
func CloneRepoToTemp ¶ added in v1.2.0
CloneRepoToTemp clones the given GitHub repository URL (https:// or ssh:// or git@...) into a newly-created temporary directory under /tmp and returns the local path.
func GetCurrentBranch ¶
GetCurrentBranch returns the head ref of a Git Repository
func ListGitBranches ¶
ListGitBranches opens the Git repository located at repoPath and returns a slice of branch names found in the repository.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.