libgit2

git_cherrypick

Version:

Cherry-pick the given commit, producing changes in the index and working directory.

Signature

int git_cherrypick(git_repository *repo, git_commit *commit, const git_cherrypick_options *cherrypick_options);

Parameters

In
repo

the repository to cherry-pick

In
commit

the commit to cherry-pick

In
cherrypick_options

the cherry-pick options (or null for defaults)

Returns

int

zero on success, -1 on failure.

Versions