libgit2

git_merge_head_from_id

Version:

Creates a git_merge_head from the given commit id. The resulting git_merge_head must be freed with git_merge_head_free.

Signature

int git_merge_head_from_id(git_merge_head **out, git_repository *repo, const git_oid *id);

Parameters

In
out

pointer to store the git_merge_head result in

In
repo

repository that contains the given commit

In
id

the commit object id to use as a merge input

Returns

int

0 on success or error code

Versions