summaryrefslogtreecommitdiff
path: root/src/odb.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-03-04 01:18:30 -0500
committerEdward Thomson <ethomson@github.com>2016-03-07 10:20:01 -0500
commite10144ae57e50798e43515cb469722a4e825c23c (patch)
tree7c47bd1660b6323551c23c9e84bc360c6c33d68b /src/odb.h
parent785d8c48ea8725691da3c50e7dae8751523d4c30 (diff)
downloadlibgit2-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/odb.h b/src/odb.h
index 281bd3a4d..31a9fd1b9 100644
--- a/src/odb.h
+++ b/src/odb.h
@@ -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.