libgit2

git_error_code

Version:

Generic return codes

Values

GIT_OK
0

No error

GIT_ERROR
-1

Generic error

GIT_ENOTFOUND
-3

Requested object could not be found

GIT_EEXISTS
-4

Object exists preventing operation

GIT_EAMBIGUOUS
-5

More than one object matches

GIT_EBUFS
-6

Output buffer too short to hold data

GIT_EUSER
-7
GIT_EBAREREPO
-8

Operation not allowed on bare repository

GIT_EUNBORNBRANCH
-9

HEAD refers to branch with no commits

GIT_EUNMERGED
-10

Merge in progress prevented operation

GIT_ENONFASTFORWARD
-11

Reference was not fast-forwardable

GIT_EINVALIDSPEC
-12

Name/ref spec was not in a valid format

GIT_ECONFLICT
-13

Checkout conflicts prevented operation

GIT_ELOCKED
-14

Lock file prevented operation

GIT_EMODIFIED
-15

Reference value does not match expected

GIT_EAUTH
-16

Authentication error

GIT_ECERTIFICATE
-17

Server certificate is invalid

GIT_EAPPLIED
-18

Patch/merge has already been applied

GIT_EPEEL
-19

The requested peel operation is not possible

GIT_EEOF
-20

Unexpected EOF

GIT_EINVALID
-21

Invalid operation or input

GIT_EUNCOMMITTED
-22

Uncommitted changes in index prevented operation

GIT_EDIRECTORY
-23

The operation is not valid for a directory

GIT_PASSTHROUGH
-30

Internal only

GIT_ITEROVER
-31

Signals end of iteration with iterator

Versions