diff options
| author | Edward Thomson <ethomson@github.com> | 2016-03-04 01:18:30 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@github.com> | 2016-03-07 10:20:01 -0500 |
| commit | e10144ae57e50798e43515cb469722a4e825c23c (patch) | |
| tree | 7c47bd1660b6323551c23c9e84bc360c6c33d68b /src/odb.h | |
| parent | 785d8c48ea8725691da3c50e7dae8751523d4c30 (diff) | |
| download | libgit2-e10144ae57e50798e43515cb469722a4e825c23c.tar.gz | |
odb: improved not found error messages
When looking up an abbreviated oid, show the actual (abbreviated) oid
the caller passed instead of a full (but ambiguously truncated) oid.
Diffstat (limited to 'src/odb.h')
| -rw-r--r-- | src/odb.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -82,7 +82,8 @@ 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); +int git_odb__error_notfound( + const char *message, const git_oid *oid, size_t oid_len); /* * Generate a GIT_EAMBIGUOUS error for the ODB. |
