git_commit_parent

Get the specified parent of the commit.

extern (C) nothrow @nogc public
int
git_commit_parent

Parameters

out_ libgit2.types.git_commit**

Pointer where to store the parent commit

commit const(libgit2.types.git_commit)*

a previously loaded commit.

n uint

the position of the parent (from 0 to parentcount)

Return Value

Type: int

0 or an error code

Meta