libgit2

git_mempack_reset

Version:

Reset the memory packer by clearing all the queued objects.

This assumes that git_mempack_dump has been called before to store all the queued objects into a single packfile.

Alternatively, call reset without a previous dump to "undo" all the recently written objects, giving transaction-like semantics to the Git repository.

Signature

void git_mempack_reset(git_odb_backend *backend);

Parameters

In
backend

The mempack backend

Versions