layout
default
menu_item
api
title
Cherrypick
description
Version 0.26.1
return_to
API Documentation Index
/api/
sections
cherrypick
commit
#cherrypick
#commit
Cherrypick. cherrypick Async
Cherrypick . cherrypick ( repo , commit , [ options ] ) . then ( function ( int ) {
// Use int
} ) ;
Cherrypick a commit and, changing the index and working directory
Returns
int
0 on success, -1 on failure
Cherrypick . commit ( repo , cherrypick_commit , our_commit , mainline , [ merge_options ] ) . then ( function ( int ) {
// Use int
} ) ;
Cherrypicks the given commit against "our" commit, producing an index that
reflects the result of the cherrypick. The index is not backed by a repo.
Parameters
Type
repo
Repository
The repo to cherrypick commits
cherrypick_commit
Commit
The commit to cherrypick
our_commit
Commit
The commit to revert against
mainline
int
The parent of the revert commit (1 or 2) if it's a merge, 0 otherwise
[merge_options]
MergeOptions
Merge options for the cherrypick
Returns
int
0 on success, -1 on failure