Enum git2::ErrorCode [] [src]

pub enum ErrorCode {
    GenericError,
    NotFound,
    Exists,
    Ambiguous,
    BufSize,
    User,
    BareRepo,
    UnbornBranch,
    Unmerged,
    NotFastForward,
    InvalidSpec,
    Conflict,
    Locked,
    Modified,
    Auth,
    Certificate,
    Applied,
    Peel,
    Eof,
    Invalid,
    Uncommitted,
    Directory,
}

An enumeration of possible errors that can happen when working with a git repository.

Variants

Generic error

Requested object could not be found

Object exists preventing operation

More than one object matches

Output buffer too short to hold data

User-generated error

Operation not allowed on bare repository

HEAD refers to branch with no commits

Merge in progress prevented operation

Reference was not fast-forwardable

Name/ref spec was not in a valid format

Checkout conflicts prevented operation

Lock file prevented operation

Reference value does not match expected

Authentication error

Server certificate is invalid

Patch/merge has already been applied

The requested peel operation is not possible

Unexpected EOF

Invalid operation or input

Uncommitted changes in index prevented operation

Operation was not valid for a directory,

Trait Implementations

impl PartialEq for ErrorCode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for ErrorCode
[src]

impl Clone for ErrorCode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ErrorCode
[src]

[src]

Formats the value using the given formatter.

impl Copy for ErrorCode
[src]