git

package
v0.0.0-...-372fb67 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffFile

func DiffFile(repoPath string, hash, file string) ([]string, error)

DiffFile :

func DiffPrev

func DiffPrev(repoPath string, hash string) ([]string, error)

DiffPrev :

func ShowFile

func ShowFile(repoPath string, hash string, filename string) (string, error)

ShowFile :

Types

type Config

type Config struct {
}

Config :

func (Config) Checkout

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

Checkout :

func (Config) CloneOrPull

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

CloneOrPull :

func (Config) Commit

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

Commit :

func (Config) Push

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

Push :

func (Config) RemoteBranch

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

RemoteBranch :

func (Config) Status

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

Status :

type Operations

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

Operations :

Jump to

Keyboard shortcuts

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