libgit2

git_repository_free

Version:

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

Signature

void git_repository_free(git_repository *repo);

Parameters

In
repo

repository handle to close. If NULL nothing occurs.

Versions