libgit2

git_cherry_pick

Version:

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

Signature

int git_cherry_pick(git_repository *repo, git_commit *commit, const git_cherry_pick_options *cherry_pick_options);

Parameters

In
repo

the repository to cherry-pick

In
commit

the commit to cherry-pick

In
cherry_pick_options

the cherry-pick options (or null for defaults)

Returns

int

zero on success, -1 on failure.

Versions