diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-18 01:48:50 +0200 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-18 01:48:50 +0200 |
commit | 904b67e69fa15b7a3246e43b3d78645ffa2331f6 (patch) | |
tree | 3be54c31248759ba27a08cef52558385116d9b19 /src/odb_pack.c | |
parent | e172cf082e62aa421703080d0bccb7b8762c8bd4 (diff) | |
download | libgit2-breaking-changes.tar.gz |
errors: Rename error codesbreaking-changes
Diffstat (limited to 'src/odb_pack.c')
-rw-r--r-- | src/odb_pack.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c index e03879ee2..458f288d9 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_AMBIGUOUS if short oid is ambiguous. + * Sets GIT_EAMBIGUOUS 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_NOTFOUND) + if (error == GIT_ENOTFOUND) /* 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_AMBIGUOUS) + if (error == GIT_EAMBIGUOUS) 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_AMBIGUOUS) + if (error == GIT_EAMBIGUOUS) 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_NOTFOUND; + return GIT_ENOTFOUND; return read_header_packed(obj, &location); } |