catfs

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2019 License: AGPL-3.0 Imports: 2 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrStageNotEmpty is returned by Reset() when it was called without force.
	// and there are still changes in the staging area.
	ErrStageNotEmpty = errors.New("there are changes in the staging area; use the --force")

	// ErrNoChange is returned when trying to commit, but there is no change.
	ErrNoChange = errors.New("nothing changed between the given versions")

	// ErrAmbigiousRev is returned when a ref string could mean several commits.
	ErrAmbigiousRev = errors.New("there is more than one rev with this prefix")

	// 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 IsErrNoSuchRef(err error) bool

IsErrNoSuchRef checks if `err` is a no such ref error.

func IsNoSuchFileError

func IsNoSuchFileError(err error) bool

IsNoSuchFileError asserts that `err` means that the file could not be found

func NoSuchFile

func NoSuchFile(path string) error

NoSuchFile creates a new error that reports `path` as missing

Types

type ErrNoSuchRef

type ErrNoSuchRef string

ErrNoSuchRef is returned when a bad ref was used

func (ErrNoSuchRef) Error

func (e ErrNoSuchRef) Error() string

Jump to

Keyboard shortcuts

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