diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-11-26 04:59:21 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-11-26 08:48:00 +0100 |
commit | 45e79e37012ffec58c754000c23077ecac2da753 (patch) | |
tree | 809092609a4ca641ada8990c9008c7fb96c9cc07 /tests/t04-commit.c | |
parent | 9462c471435b4de74848408bebe41d770dc49a50 (diff) | |
download | libgit2-45e79e37012ffec58c754000c23077ecac2da753.tar.gz |
Rename all `_close` methods
There's no difference between `_free` and `_close` semantics: keep
everything with the same name to avoid confusions.
Diffstat (limited to 'tests/t04-commit.c')
-rw-r--r-- | tests/t04-commit.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/t04-commit.c b/tests/t04-commit.c index d0bb1b583..a0e6037e4 100644 --- a/tests/t04-commit.c +++ b/tests/t04-commit.c @@ -609,18 +609,18 @@ BEGIN_TEST(details0, "query the details on a parsed commit") must_be_true(parents <= 2); for (p = 0;p < parents;p++) { if (old_parent != NULL) - git_commit_close(old_parent); + git_commit_free(old_parent); old_parent = parent; must_pass(git_commit_parent(&parent, commit, p)); must_be_true(parent != NULL); must_be_true(git_commit_author(parent) != NULL); // is it really a commit? } - git_commit_close(old_parent); - git_commit_close(parent); + git_commit_free(old_parent); + git_commit_free(parent); must_fail(git_commit_parent(&parent, commit, parents)); - git_commit_close(commit); + git_commit_free(commit); } git_repository_free(repo); @@ -665,8 +665,8 @@ BEGIN_TEST(write0, "write a new commit object from memory to disk") tree, 1, parent)); - git_object_close((git_object *)parent); - git_object_close((git_object *)tree); + git_object_free((git_object *)parent); + git_object_free((git_object *)tree); git_signature_free(committer); git_signature_free(author); @@ -696,7 +696,7 @@ BEGIN_TEST(write0, "write a new commit object from memory to disk") must_pass(remove_loose_object(REPOSITORY_FOLDER, (git_object *)commit)); - git_commit_close(commit); + git_commit_free(commit); git_repository_free(repo); END_TEST @@ -742,7 +742,7 @@ BEGIN_TEST(root0, "create a root commit") tree, 0)); - git_object_close((git_object *)tree); + git_object_free((git_object *)tree); git_signature_free(committer); git_signature_free(author); @@ -764,7 +764,7 @@ BEGIN_TEST(root0, "create a root commit") must_pass(git_reference_delete(branch)); must_pass(remove_loose_object(REPOSITORY_FOLDER, (git_object *)commit)); git__free(head_old); - git_commit_close(commit); + git_commit_free(commit); git_repository_free(repo); git_reference_free(head); |