gitcmd

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGitDir

func FindGitDir(dir string) (string, error)

Types

type GitClient

type GitClient struct {
	RepoDir string
}

func (GitClient) Branch

func (c GitClient) Branch(name string) error

func (GitClient) Clone

func (c GitClient) Clone(ctx context.Context, url string) error

func (GitClient) Commit

func (c GitClient) Commit(msg string) (string, error)

func (GitClient) Origin

func (c GitClient) Origin() (string, error)

func (GitClient) Push

func (c GitClient) Push(ctx context.Context) error

Jump to

Keyboard shortcuts

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