git_mempack_reset

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.

package extern (C) nothrow @nogc
int
git_mempack_reset

Parameters

backend libgit2_d.types.git_odb_backend*

The mempack backend

Return Value

Type: int

0 on success; error code otherwise

Meta