repository

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoActiveBranch      = errors.New("no active branch")
	ErrNoRemoteOrigin      = errors.New("no remote named \"origin\" found")
	ErrUnableToReadGitFile = errors.New("unable to read .git file")
)

Functions

This section is empty.

Types

type Repository

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

func FindInParents

func FindInParents(path string) (Repository, error)

Return git repository in given directory or parent directories.

func (*Repository) CurrentBranchName

func (repo *Repository) CurrentBranchName() (string, error)

func (*Repository) OriginUrl

func (repo *Repository) OriginUrl() (string, error)

Jump to

Keyboard shortcuts

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