git_commit_parent

Get the specified parent of the commit.

extern (C) nothrow @nogc
int
git_commit_parent

Parameters

out_ libgit2_d.types.git_commit**

Pointer where to store the parent commit

commit const(libgit2_d.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