git

package
v0.0.0-...-dc1b6dd Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Status

func Status()

Types

type CommitMetadata

type CommitMetadata struct {
	Hash        string
	Description string
	Date        time.Time
}

type Repo

type Repo struct {
	RemotePath string
	LocalPath  string
	// contains filtered or unexported fields
}

func Clone

func Clone(remotePath string, localPath string) (*Repo, error)

func LongClone

func LongClone(repoURL string, localPath, branch string) (*Repo, error)

func (*Repo) ActiveBranch

func (repo *Repo) ActiveBranch() (string, error)

func (*Repo) CreateBranch

func (repo *Repo) CreateBranch(branchName string) error

func (*Repo) Head

func (repo *Repo) Head() (CommitMetadata, error)

Jump to

Keyboard shortcuts

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