7.7
2.42 Revert
(require libgit2/include/revert) | package: libgit2 |
procedure
(git_revert repo commit given_opts) → integer?
repo : repository? commit : commit? given_opts : git_revert_opts?
Reverts the given commit, producing changes in the index and working directory.
procedure
(git_revert_commit repo revert_commit our_commit mainline merge_options) → index? repo : repository? revert_commit : commit? our_commit : commit? mainline : integer? merge_options : merge_options?
Reverts the given commit against the given "our" commit, producing an index that reflects the result of the revert.
The returned index must be freed explicitly with git_index_free.
procedure
(git_revert_init_options opts version) → integer?
opts : git_revert_options? version : integer?
Initializes a git_revert_options with default values. Equivalent to creating an instance with GIT_REVERT_OPTIONS_INIT.