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

int git_mempack_reset(git_odb_backend *backend);

Parameters

In
backend

The mempack backend

Returns

int

0 on success; error code otherwise

Versions