{"size": 890, "ext": "scrbl", "max_stars_repo_path": "libgit2/scribblings/cherrpick.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/cherrpick.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/cherrpick.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": 23.4210526316, "max_line_length": 126, "alphanum_fraction": 0.7988764045}
#lang scribble/manual

@(require (for-label racket))

@title{Cherrypick}

@defmodule[libgit2/include/cherrypick]


@defproc[(git_cherrypick
[repo repository?]
[commit commit?]
[cherrypick_options cherrypick_options?])
integer?]{
Cherry-pick the given commit, producing changes in the index and working directory.

}

@defproc[(git_cherrypick_commit
[repo repository?]
[cherrypick_commit commit?]
[our_commit commit?]
[int unsigned]
[merge_options merge_options?])
index?]{
Cherry-picks the given commit against the given "our" commit, producing an index that reflects the result of the cherry-pick.

The returned index must be freed explicitly with git_index_free.

}

@defproc[(git_cherrypick_init_options
[opts cherrypick_options?]
[int unsigned])
integer?]{
Initializes a git_cherrypick_options with default values. Equivalent to creating an instance with GIT_CHERRYPICK_OPTIONS_INIT.
}
