git

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2026 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(cfg *config.AssignmentConfig, noSpinner bool)

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, sourceRepo *SourceRepo, toBranch string, force bool, project *gitlab.Project) error

Types

type SourceRepo added in v2.4.0

type SourceRepo struct {
	Repo *git.Repository
	Ref  plumbing.ReferenceName
	Auth ssh.AuthMethod
}

func CloneBranch added in v2.4.0

func CloneBranch(url, fromBranch string, singleCommit bool, commitMessage string) (*SourceRepo, error)

func PrepareSourceRepo added in v2.4.0

func PrepareSourceRepo(url, fromBranch string) (*SourceRepo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL