git

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(log *zap.Logger) Client

func (Client) AddAndCommit

func (c Client) AddAndCommit(workingDir, file, message string) error

func (Client) AddWorktree

func (c Client) AddWorktree(path, remote, branch string) error

func (Client) GetOwnerAndRepo

func (c Client) GetOwnerAndRepo(workingDir, remote string) (string, string, error)

func (Client) ListRemoteBranches

func (c Client) ListRemoteBranches(remote string) ([]string, error)

func (Client) Push

func (c Client) Push(workingDir, remote, branch, token string) error

func (Client) RemoveWorktree

func (c Client) RemoveWorktree(path string) error

Jump to

Keyboard shortcuts

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