Show / Hide Table of Contents

Enum git_error_code

The return codes from a libgit2 function; GIT_OK is used when the function call succeeded, otherwise a negative value is returned. Most functions return GIT_ERROR on fatal error, but may return a more detailed error code to allow callers to respond.

Namespace: Dogged.Native
Assembly: Dogged.Native.dll
Syntax
public enum git_error_code : int

Fields

Name Description
GIT_EAMBIGUOUS

More than one object matches.

GIT_EAPPLIED

Patch/merge has already been applied.

GIT_EAPPLYFAIL

Patch application failed.

GIT_EAUTH

Authentication error.

GIT_EBAREREPO

Operation not allowed on bare repository.

GIT_EBUFS

Output buffer too short to hold data.

GIT_ECERTIFICATE

Server certificate is invalid.

GIT_ECONFLICT

Checkout conflicts prevented operation.

GIT_EDIRECTORY

The operation is not valid for a directory.

GIT_EEOF

Unexpected EOF.

GIT_EEXISTS

Object exists preventing operation.

GIT_EINDEXDIRTY

Unsaved changes in the index would be overwritten.

GIT_EINVALID

Invalid operation or input.

GIT_EINVALIDSPEC

Name/ref spec was not in a valid format.

GIT_ELOCKED

Lock file prevented operation.

GIT_EMERGECONFLICT

A merge conflict exists and cannot continue.

GIT_EMISMATCH

Hashsum mismatch in object.

GIT_EMODIFIED

Reference value does not match expected.

GIT_ENONFASTFORWARD

Reference was not fast-forwardable.

GIT_ENOTFOUND

Requested object could not be found.

GIT_ENOTSUPPORTED

An option is not supported

GIT_EOWNER

The object is not owned by the current user

GIT_EPEEL

The requested peel operation is not possible.

GIT_EREADONLY

The subject is read-only

GIT_ERROR

An error occured; call for more information.

GIT_EUNBORNBRANCH

HEAD refers to branch with no commits.

GIT_EUNCHANGED

There were no changes

GIT_EUNCOMMITTED

Uncommitted changes in index prevented operation.

GIT_EUNMERGED

Merge in progress prevented operation.

GIT_EUSER

GIT_EUSER is a special error that is never generated by libgit2 code. You can return it from a callback (e.g to stop an iteration) to know that it was generated by the callback and not by libgit2.

GIT_ITEROVER

Signals end of iteration with iterator.

GIT_OK

No error.

GIT_PASSTHROUGH

A user-configured callback refused to act.

GIT_RETRY

Internal only.

GIT_TIMEOUT

The operation timed out

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX