Documentation ¶
Index ¶
- func CheckoutTag(path string, tag string)
- func CheckoutTagAsBranch(path string, tag string, branch plumbing.ReferenceName)
- func DownloadRepoToTemp(gitUrl string, spinner *message.Spinner) string
- func MutateGitUrlsInText(host string, text string) string
- func Pull(gitUrl string, targetFolder string, spinner *message.Spinner) string
- func PushAllDirectories(localPath string)
- type Credential
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutTag ¶
CheckoutTag performs a `git checkout` of the provided tag to a detached HEAD
func CheckoutTagAsBranch ¶
func CheckoutTagAsBranch(path string, tag string, branch plumbing.ReferenceName)
CheckoutTagAsBranch performs a `git checkout` of the provided tag but rather than checking out to a detached head, checks out to the provided branch ref It will delete the branch provided if it exists
func MutateGitUrlsInText ¶
func PushAllDirectories ¶
func PushAllDirectories(localPath string)
Types ¶
type Credential ¶
func FindAuthForHost ¶
func FindAuthForHost(baseUrl string) Credential
Click to show internal directories.
Click to hide internal directories.