diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-03-23 15:40:47 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-03-23 15:40:47 +0200 |
commit | f0d08b7cec782634e550ad0cd52a705b2c87244c (patch) | |
tree | 31c9c36caee599c0846c824d363571b958a3d7ff /include/git2 | |
parent | b0b8313583afdcd54a83ba3855cf3f6f287ae0ab (diff) | |
download | libgit2-f0d08b7cec782634e550ad0cd52a705b2c87244c.tar.gz |
Remove `git_repository_gc` from the headers
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/repository.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index 317b367d..00c1f20d 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -155,21 +155,17 @@ GIT_EXTERN(int) git_repository_index(git_index **index, git_repository *repo); /** * Free a previously allocated repository * + * Note that after a repository is free'd, all the objects it has spawned + * will still exist until they are manually closed by the user + * with `git_object_close`, but accessing any of the attributes of + * an object without a backing repository will result in undefined + * behavior + * * @param repo repository handle to close. If NULL nothing occurs. */ GIT_EXTERN(void) git_repository_free(git_repository *repo); /** - * Force a garbage collector pass on the repository - * - * This will force-free any cached objects that have been - * previously marked by the user as closed (`git_object_close`). - * - * @param repo repository handle to collect. If NULL nothing occurs. - */ -GIT_EXTERN(int) git_repository_gc(git_repository *repo); - -/** * Creates a new Git repository in the given folder. * * TODO: |