diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-05-28 01:48:59 +0200 |
---|---|---|
committer | Andreas Ericsson <ae@op5.se> | 2010-06-02 10:32:07 +0200 |
commit | 6bb7aa1318f7f31a346c71ef81d2b33c6fd41600 (patch) | |
tree | 6fdccd49f442a7204399ca9b418f017322dbded8 /src/git | |
parent | 0daa6cdcad92746551f78edfa93be0bc188d4f4a (diff) | |
download | libgit2-6bb7aa1318f7f31a346c71ef81d2b33c6fd41600.tar.gz |
Added new error codes. Improved error handling.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/git')
-rw-r--r-- | src/git/common.h | 6 | ||||
-rw-r--r-- | src/git/revwalk.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/git/common.h b/src/git/common.h index 19c6a202c..2506dae36 100644 --- a/src/git/common.h +++ b/src/git/common.h @@ -77,6 +77,12 @@ /** Consult the OS error information. */ #define GIT_EOSERR (GIT_ERROR - 4) +/** The specified object is of invalid type */ +#define GIT_EOBJTYPE (GIT_ERROR - 5) + +/** The specified object has its data corrupted */ +#define GIT_EOBJCORRUPTED (GIT_ERROR - 6) + GIT_BEGIN_DECL /** A revision traversal pool. */ diff --git a/src/git/revwalk.h b/src/git/revwalk.h index 0a902f96c..027a51a06 100644 --- a/src/git/revwalk.h +++ b/src/git/revwalk.h @@ -67,14 +67,14 @@ GIT_EXTERN(void) gitrp_reset(git_revpool *pool); * @param pool the pool being used for the traversal. * @param commit the commit to start from. */ -GIT_EXTERN(void) gitrp_push(git_revpool *pool, git_commit *commit); +GIT_EXTERN(int) gitrp_push(git_revpool *pool, git_commit *commit); /** * Mark a commit (and its ancestors) uninteresting for the output. * @param pool the pool being used for the traversal. * @param commit the commit that will be ignored during the traversal */ -GIT_EXTERN(void) gitrp_hide(git_revpool *pool, git_commit *commit); +GIT_EXTERN(int) gitrp_hide(git_revpool *pool, git_commit *commit); /** * Get the next commit from the revision traversal. |