git

package
v0.0.0-...-1c4df2c Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OriginRemoteName   = "origin"
	UpstreamRemoteName = "upstream"
)
View Source
const (
	DefaultBranchName = "master"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo interface {
	SetOrigin(originLocation string) error

	Checkout(branchName string) error // needed by the hermetic.Fork workflow
	Add(path string) error
	Commit(name string, email string, message string) error
	PushOrigin(token auth.TokenProvider, localBranch string, remoteBranch string) error
}

func Clone

func Clone(token auth.TokenProvider, repoUrl string, toLocation string) (Repo, error)

func Open

func Open(p string) (Repo, error)

Jump to

Keyboard shortcuts

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