Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Open = gogit.PlainOpen
Functions ¶
func CheckoutTag ¶
func CheckoutTag( ctx context.Context, repo *Repository, tag string, ) error
CheckoutTag checkouts a repository tag by looking for the tag reference then calling the checkout function.
Calling This function is equivalent to executing `git checkout tags/$tag`
Types ¶
type Repository ¶
type Repository = gogit.Repository
func Clone ¶
func Clone( ctx context.Context, path, repositoryURL string, ) (*Repository, error)
Clone clones a git repository into a given directory and returns a Repository object that can be used to manipulate that clone'd repo.
Calling his function is equivalent to executing `git clone $repositoryURL $path`
Click to show internal directories.
Click to hide internal directories.