git

package
v2.4.1 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 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)

Jump to

Keyboard shortcuts

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