diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-06-16 02:36:21 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-06-16 02:36:21 +0200 |
commit | fa48608ec30758dbf6d0d26d3c4f8efba8efe8e9 (patch) | |
tree | 31e3cc7bedaa6c4d3a8b8d37903991ed811eb02d /src/odb_pack.c | |
parent | 43521d0688c744e98f07f19dd0b15e6b2c763693 (diff) | |
download | libgit2-fa48608ec30758dbf6d0d26d3c4f8efba8efe8e9.tar.gz |
oid: Rename methods
Yeah. Finally. Fuck the old names, this ain't POSIX
and they don't make any sense at all.
Diffstat (limited to 'src/odb_pack.c')
-rw-r--r-- | src/odb_pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c index 29ceb02dc..d02338d62 100644 --- a/src/odb_pack.c +++ b/src/odb_pack.c @@ -856,7 +856,7 @@ static int packfile_check(struct pack_file **pack_out, const char *path) /* see if we can parse the sha1 oid in the packfile name */ if (path_len < 40 || - git_oid_mkstr(&p->sha1, path + path_len - GIT_OID_HEXSZ) < GIT_SUCCESS) + git_oid_fromstr(&p->sha1, path + path_len - GIT_OID_HEXSZ) < GIT_SUCCESS) memset(&p->sha1, 0x0, GIT_OID_RAWSZ); *pack_out = p; @@ -1032,7 +1032,7 @@ static int pack_entry_find_offset( return git__throw(GIT_EAMBIGUOUSOIDPREFIX, "Failed to find offset for pack entry. Ambiguous sha1 prefix within pack"); } else { *offset_out = nth_packed_object_offset(p, pos); - git_oid_mkraw(found_oid, current); + git_oid_fromraw(found_oid, current); #ifdef INDEX_DEBUG_LOOKUP unsigned char hex_sha1[GIT_OID_HEXSZ + 1]; |