From ef5ffed39a91e8e645ed77f52ec862d47b081e9c Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Wed, 1 Jun 2011 18:23:36 +0200 Subject: object: Update documentation --- include/git2/object.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/git2/object.h') diff --git a/include/git2/object.h b/include/git2/object.h index 16dde8e56..7fca1c988 100644 --- a/include/git2/object.h +++ b/include/git2/object.h @@ -77,6 +77,12 @@ GIT_EXTERN(git_otype) git_object_type(const git_object *obj); /** * Get the repository that owns this object * + * Freeing or calling `git_repository_close` on the + * returned pointer will invalidate the actual object. + * + * Any other operation may be run on the repository without + * affecting the object. + * * @param obj the object * @return the repository who owns this object */ -- cgit v1.2.1