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 /include/git2/object.h | |
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 'include/git2/object.h')
-rw-r--r-- | include/git2/object.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/object.h b/include/git2/object.h index d82a71c3..86a0a585 100644 --- a/include/git2/object.h +++ b/include/git2/object.h @@ -24,7 +24,7 @@ GIT_BEGIN_DECL * Lookup a reference to one of the objects in a repostory. * * The generated reference is owned by the repository and - * should be closed with the `git_object_close` method + * should be closed with the `git_object_free` method * instead of free'd manually. * * The 'type' parameter must match the type of the object @@ -56,7 +56,7 @@ GIT_EXTERN(int) git_object_lookup( * the prefix; otherwise the method will fail. * * The generated reference is owned by the repository and - * should be closed with the `git_object_close` method + * should be closed with the `git_object_free` method * instead of free'd manually. * * The 'type' parameter must match the type of the object @@ -123,7 +123,7 @@ GIT_EXTERN(git_repository *) git_object_owner(const git_object *obj); * * @param object the object to close */ -GIT_EXTERN(void) git_object_close(git_object *object); +GIT_EXTERN(void) git_object_free(git_object *object); /** * Convert an object type to it's string representation. |