git_commit_parent_id

Get the oid of a specified parent for a commit. This is different from git_commit_parent, which will attempt to load the parent commit from the ODB.

extern (C) nothrow @nogc
git_commit_parent_id

Parameters

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: const(libgit2_d.oid.git_oid)*

the id of the parent, null on error.

Meta