diff options
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. |