repo: Add git_repository__cleanup

This commit is contained in:
Vicent Marti
2013-04-24 15:52:33 +02:00
parent 2370b4d79e
commit 879458e7cf
4 changed files with 32 additions and 5 deletions

View File

@@ -27,6 +27,20 @@ GIT_BEGIN_DECL
*/
GIT_EXTERN(int) git_repository_new(git_repository **out);
/**
* Reset all the internal state in a repository.
*
* This will free all the mapped memory and internal objects
* of the repository and leave it in a "blank" state.
*
* There's no need to call this function directly unless you're
* trying to aggressively cleanup the repo before its
* deallocation. `git_repository_free` already performs this operation
* before deallocation the repo.
*/
GIT_EXTERN(void) git_repository__cleanup(git_repository *repo);
/**
* Set the configuration file for this repository
*