basepi / libgit2

The Library
http://libgit2.github.com
Other
0 stars 0 forks source link

Create diff error codes #34

Open trane opened 13 years ago

trane commented 13 years ago

We must add error codes to common.h specific to diff results. Discussion here for what error codes are needed go here.

trane commented 13 years ago

Errors come in the following format:

/** The specified repository is invalid */
#define GIT_ENOTAREPO (GIT_ERROR - 7)

/** The object type is invalid or doesn't match */
#define GIT_EINVALIDTYPE (GIT_ERROR - 8)

Public errors belong in /include/git2/common.h Most should go in that one. Private errors belong in src/common.h