libgit2

git_merge_head_from_oid

Version:

Creates a git_merge_head from the given commit id

Signature

int git_merge_head_from_oid(git_merge_head **out, git_repository *repo, const git_oid *oid);

Parameters

In
out

pointer to store the git_merge_head result in

In
repo

repository that contains the given commit

In
oid

the commit object id to use as a merge input

Returns

int

zero on success, -1 on failure.

Versions