Documentation ¶
Index ¶
- func CreateFile(p string) (*os.File, error)
- func IsValidRepoUrl(url string) bool
- func RepoNameFromUrl(url string) (string, error)
- type Git
- func (g *Git) ApplyCommits(repo *git.Repository, checkoutPath string, commits []*object.Commit, ...) error
- func (g *Git) CheckoutBranch(repo *git.Repository, ref string, create bool) error
- func (g *Git) CloneRepo(repoUrl string, dir string) (*git.Repository, string, error)
- func (g *Git) CommitsForBranch(repo *git.Repository, ref string, path *string) ([]*object.Commit, *object.Commit, error)
- func (g *Git) OpenRepo(repoPath string) (*git.Repository, error)
- func (g *Git) Push(repo *git.Repository, branch string) error
- type GitOption
- type PathFormatterFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidRepoUrl ¶
func RepoNameFromUrl ¶
Types ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
func (*Git) ApplyCommits ¶
func (g *Git) ApplyCommits(repo *git.Repository, checkoutPath string, commits []*object.Commit, subdir string, outputPathFormatters ...PathFormatterFn) error
ApplyCommits will apply all of the commits to the provided repository.
func (*Git) CheckoutBranch ¶
func (*Git) CommitsForBranch ¶
type GitOption ¶
type GitOption func(*Git)
func BasicAuthPassword ¶
func BasicAuthUsername ¶
func PrivateKeyPassphrase ¶
func PrivateKeyPath ¶
func SshUsername ¶
type PathFormatterFn ¶
Click to show internal directories.
Click to hide internal directories.