git

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepo

func CloneRepo(upstream string, downstream string, tmpDir string) error

clone repo

func SyncRepoNamespace added in v0.7.0

func SyncRepoNamespace(repo *common.Repo, dryRun bool) error

Syncs the upstream repos to our namespace in github

Types

type GitRepo added in v0.7.2

type GitRepo struct {
	// contains filtered or unexported fields
}

func (*GitRepo) AddRemote added in v0.7.2

func (c *GitRepo) AddRemote(refName string, upstream string) error

func (*GitRepo) Checkout added in v0.7.2

func (c *GitRepo) Checkout(branch string)

func (*GitRepo) Merge added in v0.7.2

func (c *GitRepo) Merge(remoteBranch string) error

func (*GitRepo) Push added in v0.7.2

func (c *GitRepo) Push(refName string) error

func (*GitRepo) SetGitConfig added in v0.7.2

func (c *GitRepo) SetGitConfig()

Sets basic directory level git config settings

Jump to

Keyboard shortcuts

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