git

package
v0.0.0-...-378edf0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

func (Config) Checkout

func (gc Config) Checkout(repoPath string, branch string) error

func (Config) Clean

func (gc Config) Clean(repoPath string) error

func (Config) CloneOrPull

func (gc Config) CloneOrPull(url, repoPath, branch string, debug bool) (map[string]struct{}, error)

func (Config) Commit

func (gc Config) Commit(repoPath, targetPath, message string) error

func (Config) Push

func (gc Config) Push(repoPath, branch string) error

func (Config) RemoteBranch

func (gc Config) RemoteBranch(repoPath string) ([]string, error)

func (Config) Status

func (gc Config) Status(repoPath string) ([]string, error)

type Operations

type Operations interface {
	CloneOrPull(string, string, string) (map[string]struct{}, error)
	RemoteBranch(string) ([]string, error)
	Checkout(string, string) error
}

Jump to

Keyboard shortcuts

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