{"size": 973, "ext": "scrbl", "max_stars_repo_path": "libgit2/scribblings/revert.scrbl", "max_stars_repo_name": "guygastineau/libgit2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "libgit2/scribblings/revert.scrbl", "max_issues_repo_name": "guygastineau/libgit2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libgit2/scribblings/revert.scrbl", "max_forks_repo_name": "guygastineau/libgit2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.6052631579, "max_line_length": 119, "alphanum_fraction": 0.6824254882}
#lang scribble/manual

@(require (for-label racket))

@title{Revert}

@defmodule[libgit2/include/revert]


@defproc[(git_revert
          [repo repository?]
          [commit commit?]
          [given_opts git_revert_opts?])
         integer?]{
 Reverts the given commit, producing changes in the index and working directory.

}

@defproc[(git_revert_commit
          [repo repository?]
          [revert_commit commit?]
          [our_commit commit?]
          [mainline integer?]
          [merge_options merge_options?])
         index?]{
 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.

}

@defproc[(git_revert_init_options
          [opts git_revert_options?]
          [version integer?])
         integer?]{
 Initializes a git_revert_options with default values. Equivalent to creating an instance with GIT_REVERT_OPTIONS_INIT.
}
