libgit2

git_commit_parent_callback

Version:

Callback function to return parents for commit.

This is invoked with the count of the number of parents processed so far along with the user supplied payload. This should return a git_oid of the next parent or NULL if all parents have been provided.

Signature

typedef const git_oid *git_commit_parent_callback(size_t idx, void *payload);

Parameters

size_t
In
idx

the index of the parent

void *
In
payload

the user-specified payload

Returns

the object id of the parent, or NULL if there are no further parents

Parameter To

Versions