Documentation ¶
Overview ¶
Package git contains functions for interacting with git repositories.
Package git contains functions for interacting with git repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRef ¶
func ParseRef(r string) plumbing.ReferenceName
ParseRef parses the provided ref into a ReferenceName if it's not a hash.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository manages a local git repository.
func Open ¶
func Open(rootPath, address string) (*Repository, error)
Open opens an existing local repository at the given path.
func (*Repository) Path ¶
func (r *Repository) Path() string
Path returns the local path the repository is stored at.
Click to show internal directories.
Click to hide internal directories.