git_commit_nth_gen_ancestor

Get the commit object that is the <n>th generation ancestor of the named commit object, following only the first parents. The returned commit has to be freed by the caller.

Passing 0 as the generation number returns another instance of the base commit itself.

@param ancestor Pointer where to store the ancestor commit @param commit a previously loaded commit. @param n the requested generation @return 0 on success; git_error_code.GIT_ENOTFOUND if no matching ancestor exists or an error code

extern (C) nothrow @nogc
int
git_commit_nth_gen_ancestor

Meta