Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotEmpty = errors.New("Cannot remove: Directory is not empty") ErrStageNotEmpty = errors.New("There are changes in the staging area. Use the --force") ErrNoChange = errors.New("Nothing changed between the given versions") ErrAmbigiousRev = errors.New("There is more than one rev with this prefix") )
View Source
var ( // ErrExists is returned if a node already exists at a path, but should not. ErrExists = errors.New("File exists") // ErrBadNode is returned when a wrong node type was passed to a method. ErrBadNode = errors.New("Cannot convert to concrete type. Broken input data?") )
Functions ¶
func IsErrNoSuchRef ¶
func IsNoSuchFileError ¶
IsNoSuchFileError asserts that `err` means that the file could not be found
func NoSuchFile ¶
NoSuchFile creates a new error that reports `path` as missing
Types ¶
type ErrBadNodeType ¶
type ErrBadNodeType int
func (ErrBadNodeType) Error ¶
func (e ErrBadNodeType) Error() string
type ErrInvalidRefSpec ¶
type ErrInvalidRefSpec struct {
// contains filtered or unexported fields
}
func (ErrInvalidRefSpec) Error ¶
func (e ErrInvalidRefSpec) Error() string
type ErrNoHashFound ¶
type ErrNoHashFound struct {
// contains filtered or unexported fields
}
func (ErrNoHashFound) Error ¶
func (e ErrNoHashFound) Error() string
type ErrNoSuchRef ¶
type ErrNoSuchRef string
func (ErrNoSuchRef) Error ¶
func (e ErrNoSuchRef) Error() string
Click to show internal directories.
Click to hide internal directories.