Documentation
¶
Index ¶
- func Checkout(rev string, repo *git.Repository) (string, error)
- func CloneOrOpen(remoteUrl string, cloneDir string, cloneOptions *git.CloneOptions) (*git.Repository, error)
- func FastForward(repo *git.Repository, fetchOptions *git.FetchOptions) error
- func Gc(repoDir string, logger *log.Logger) error
- func Pull(url string, destDir string) (*git.Repository, error)
- func PullBranch(url string, branch string, destDir string) (*git.Repository, error)
- func ResetRepo(repoDir string, logger *log.Logger) error
- func RevparseToCommit(rev string, repo *git.Repository) (*git.Commit, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneOrOpen ¶
func CloneOrOpen(remoteUrl string, cloneDir string, cloneOptions *git.CloneOptions) (*git.Repository, error)
func FastForward ¶
func FastForward(repo *git.Repository, fetchOptions *git.FetchOptions) error
func Gc ¶
Run git gc to pack the repository, this is necessary because libgit2 has no ability at present to perform house keeping tasks
func PullBranch ¶
func ResetRepo ¶
Cleanup a git repo that is in an interim state from a crashed process, or remove if unable to cleanup
func RevparseToCommit ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.