Added GIT_EINVALIDREFSTATE error.

This commit is contained in:
nulltoken 2011-02-11 13:58:40 +01:00 committed by Vicent Marti
parent aa2120e9da
commit 6a0895adea
2 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,8 @@ static struct {
{GIT_ETOONESTEDSYMREF, "The specified symbolic reference is too deeply nested"},
{GIT_EPACKEDREFSCORRUPTED, "The pack-refs file is either corrupted of its format is not currently supported"},
{GIT_EINVALIDPATH, "The path is invalid" },
{GIT_EREVWALKOVER, "The revision walker is empty; there are no more commits left to iterate"}
{GIT_EREVWALKOVER, "The revision walker is empty; there are no more commits left to iterate"},
{GIT_EINVALIDREFSTATE, "The state of the reference is not valid"}
};
const char *git_strerror(int num)

View File

@ -154,6 +154,9 @@
/** The revision walker is empty; there are no more commits left to iterate */
#define GIT_EREVWALKOVER (GIT_ERROR - 20)
/** The state of the reference is not valid */
#define GIT_EINVALIDREFSTATE (GIT_ERROR - 21)
GIT_BEGIN_DECL
/** @} */
GIT_END_DECL