git

package
v2.0.0-alpha.39 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	Init() Template
	Clone(repo string, opts ...string) Template
	CloneTagOrBranch(repo, tagOrBranch string, opts ...string) Template

	RemoteBranches() Template
	RemoteList() Template
	RemoteAdd(name, url string) Template
	Fetch(opts ...string) Template
	Pull() Template
	Push(branch string) Template

	Checkout(args ...string) Template
	Merge(arg string) Template
	Branch(opts ...string) Template
	NewBranch(branch string) Template

	SubmoduleUpdate(opts ...string) Template
	SubmoduleForeach(args ...string) Template

	Log(format string, opts ...string) Template
	RevList(commit string, opts ...string) Template
	RevParse(arg string) Template
	UpdateRef(opts ...string) Template

	Config(key string, value string, opts ...string) Template
	SparseCheckoutInit(cone bool) Template
	SparseCheckoutSet(opts ...string) Template

	Reset(mode, commit string) Template
	Clean(options ...string) Template
	Add(pathspec string) Template
	Apply(patch string) Template
	Commit(message string) Template
	Status(opts ...string) Template
}

Factory ...

func DefaultFactory

func DefaultFactory(dir string, cmdFactory command.Factory) (Factory, error)

DefaultFactory ...

func NewFactory

func NewFactory(dir string, cmdFactory command.Factory, envs []string) (Factory, error)

NewFactory ...

type Template

type Template interface {
	Create(stdOut, stdErr io.Writer, envs []string) command.Command
}

Template ...

Jump to

Keyboard shortcuts

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