diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-05-05 14:22:53 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-05-05 14:22:53 -0700 |
| commit | 48ecd122ea6fb8cf12fb4029974c314e5d9efb62 (patch) | |
| tree | 88f90fa8c9d903f072a2b1c647c51a9899e520c7 /src/odb.h | |
| parent | 2218fd57a50ceb851cb131939bf0747e072e40f6 (diff) | |
| parent | 4ef14af93517b3842bc0dfa24147cf10dd029582 (diff) | |
| download | libgit2-48ecd122ea6fb8cf12fb4029974c314e5d9efb62.tar.gz | |
Merge pull request #659 from libgit2/development-merge
New-error-handling
Diffstat (limited to 'src/odb.h')
| -rw-r--r-- | src/odb.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -67,4 +67,14 @@ int git_odb__hashfd(git_oid *out, git_file fd, size_t size, git_otype type); */ int git_odb__hashlink(git_oid *out, const char *path); +/* + * Generate a GIT_ENOTFOUND error for the ODB. + */ +int git_odb__error_notfound(const char *message, const git_oid *oid); + +/* + * Generate a GIT_EAMBIGUOUS error for the ODB. + */ +int git_odb__error_ambiguous(const char *message); + #endif |
