On this page:
git_  cherrypick
git_  cherrypick_  commit
git_  cherrypick_  init_  options
8.12

7 Cherrypick🔗ℹ

 (require libgit2/include/cherrypick) package: libgit2

procedure

(git_cherrypick repo    
  commit    
  cherrypick_options)  integer?
  repo : repository?
  commit : commit?
  cherrypick_options : (or/c git_cherrypick_options? #f)
Cherry-pick the given commit, producing changes in the index and working directory.

Passing #f for cherrypick_options will use default checkout options.

procedure

(git_cherrypick_commit repo    
  cherrypick_commit    
  our_commit    
  int    
  merge_options)  index?
  repo : repository?
  cherrypick_commit : commit?
  our_commit : commit?
  int : unsigned
  merge_options : (or/c git_merge_options? #f)
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.

Passing #f for opts will use default merge options.

procedure

(git_cherrypick_init_options opts int)  integer?

  opts : cherrypick_options?
  int : unsigned
Initializes a git_cherrypick_options with default values. Equivalent to creating an instance with GIT_CHERRYPICK_OPTIONS_INIT.