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 /tests/t04-commit.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 'tests/t04-commit.c')
| -rw-r--r-- | tests/t04-commit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/t04-commit.c b/tests/t04-commit.c index 36f3e66b5..0ae0cdfb2 100644 --- a/tests/t04-commit.c +++ b/tests/t04-commit.c @@ -370,7 +370,7 @@ BEGIN_TEST(details0, "query the details on a parsed commit") unsigned int parents, p; git_commit *parent = NULL, *old_parent = NULL; - git_oid_mkstr(&id, commit_ids[i]); + git_oid_fromstr(&id, commit_ids[i]); must_pass(git_commit_lookup(&commit, repo, &id)); @@ -426,8 +426,8 @@ BEGIN_TEST(write0, "write a new commit object from memory to disk") must_pass(git_repository_open(&repo, REPOSITORY_FOLDER)); - git_oid_mkstr(&tree_id, tree_oid); - git_oid_mkstr(&parent_id, commit_ids[4]); + git_oid_fromstr(&tree_id, tree_oid); + git_oid_fromstr(&parent_id, commit_ids[4]); /* create signatures */ committer = git_signature_new(COMMITTER_NAME, COMMITTER_EMAIL, 123456789, 60); @@ -489,7 +489,7 @@ BEGIN_TEST(root0, "create a root commit") must_pass(git_repository_open(&repo, REPOSITORY_FOLDER)); - git_oid_mkstr(&tree_id, tree_oid); + git_oid_fromstr(&tree_id, tree_oid); /* create signatures */ committer = git_signature_new(COMMITTER_NAME, COMMITTER_EMAIL, 123456789, 60); |
