git

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkout

type Checkout interface {
	As(branch string) error
	OntoWorkspace() error
}

type Remote

type Remote struct {
	Name string
	URL  string
}

Remote represents basic remote.

type RemoteLister

type RemoteLister interface {
	ListRemote(remote Remote) ([]*plumbing.Reference, error)
}

RemoteLister will list references of a GIT repository remote.

type RemoteURLInformer

type RemoteURLInformer interface {
	Remote(name string) (string, error)
}

RemoteURLInformer will return a URL of a remote or error if such remote do not exist.

type Repository

type Repository interface {
	RemoteLister
	RemoteURLInformer
	Fetch(remote Remote) error
	Checkout(remote Remote, branch string) Checkout
	Push(remote Remote, refname plumbing.ReferenceName) error
	DeleteBranch(branch string) error
	CommitChanges(message string) (*object.Commit, error)
	Merge(remote *Remote, branch string) error
}

Repository contains operations on underlying GIT repo.

Jump to

Keyboard shortcuts

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