git_revert

Reverts the given commit, producing changes in the index and working directory.

Parameters

repo libgit2_d.types.git_repository*

the repository to revert

commit libgit2_d.types.git_commit*

the commit to revert

given_opts const(.git_revert_options)*

the revert options (or null for defaults)

Return Value

Type: int

zero on success, -1 on failure.

Meta