summaryrefslogtreecommitdiff
path: root/src/odb_pack.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-18 01:21:06 +0200
committerVicent Martí <tanoku@gmail.com>2012-05-18 01:26:26 +0200
commite172cf082e62aa421703080d0bccb7b8762c8bd4 (patch)
treec19f7b1be056a9176d4e865f5be5c69a5c2912c6 /src/odb_pack.c
parent2e2e97858de18abd43f7e59fcc6151510c6d3272 (diff)
downloadlibgit2-e172cf082e62aa421703080d0bccb7b8762c8bd4.tar.gz
errors: Rename the generic return codes
Diffstat (limited to 'src/odb_pack.c')
-rw-r--r--src/odb_pack.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 458f288d9..e03879ee2 100644
--- a/src/odb_pack.c
+++ b/src/odb_pack.c
@@ -141,7 +141,7 @@ static int pack_entry_find(struct git_pack_entry *e,
/* Can find the offset of an object given
* a prefix of an identifier.
- * Sets GIT_EAMBIGUOUS if short oid is ambiguous.
+ * Sets GIT_AMBIGUOUS if short oid is ambiguous.
* This method assumes that len is between
* GIT_OID_MINPREFIXLEN and GIT_OID_HEXSZ.
*/
@@ -224,7 +224,7 @@ static int packfile_load__cb(void *_data, git_buf *path)
}
error = git_packfile_check(&pack, path->ptr);
- if (error == GIT_ENOTFOUND)
+ if (error == GIT_NOTFOUND)
/* ignore missing .pack file as git does */
return 0;
else if (error < 0)
@@ -306,7 +306,7 @@ static int pack_entry_find_prefix(
if (backend->last_found) {
error = git_pack_entry_find(e, backend->last_found, short_oid, len);
- if (error == GIT_EAMBIGUOUS)
+ if (error == GIT_AMBIGUOUS)
return error;
if (!error)
found = 1;
@@ -320,7 +320,7 @@ static int pack_entry_find_prefix(
continue;
error = git_pack_entry_find(e, p, short_oid, len);
- if (error == GIT_EAMBIGUOUS)
+ if (error == GIT_AMBIGUOUS)
return error;
if (!error) {
if (++found > 1)
@@ -354,7 +354,7 @@ int pack_backend__read_header(git_rawobj *obj, git_odb_backend *backend, const g
assert(obj && backend && oid);
if (locate_packfile(&location, (struct pack_backend *)backend, oid) < 0)
- return GIT_ENOTFOUND;
+ return GIT_NOTFOUND;
return read_header_packed(obj, &location);
}