Documentation
¶
Index ¶
- func Clone(cfg *config.AssignmentConfig, noSpinner bool)
- func CloneBranch(url, fromBranch string, orphan bool, orphanMessage string) (*git.Repository, plumbing.ReferenceName, error)
- func GetAuth() (ssh.AuthMethod, error)
- func ProjectRepoUrl(cfg *config.AssignmentConfig, suffix string) string
- func PushBranch(assignmentCfg *config.AssignmentConfig, projectname string, ...) error
- type SourceRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶
func Clone(cfg *config.AssignmentConfig, noSpinner bool)
func CloneBranch ¶ added in v2.4.0
func CloneBranch(url, fromBranch string, orphan bool, orphanMessage string) (*git.Repository, plumbing.ReferenceName, error)
func GetAuth ¶
func GetAuth() (ssh.AuthMethod, error)
func ProjectRepoUrl ¶ added in v2.4.0
func ProjectRepoUrl(cfg *config.AssignmentConfig, suffix string) string
func PushBranch ¶ added in v2.4.0
func PushBranch(assignmentCfg *config.AssignmentConfig, projectname string, repo *git.Repository, localRef plumbing.ReferenceName, toBranch string, force bool, project *gitlab.Project) error
Types ¶
type SourceRepo ¶ added in v2.4.0
type SourceRepo struct {
Repo *git.Repository
Auth ssh.AuthMethod
}
func PrepareSourceRepo ¶ added in v2.4.0
func PrepareSourceRepo(url, fromBranch string) (*SourceRepo, error)
Click to show internal directories.
Click to hide internal directories.