git_annotated_commit_from_ref

Creates a git_annotated_commit from the given reference. The resulting git_annotated_commit must be freed with git_annotated_commit_free.

extern (C) nothrow @nogc
int
git_annotated_commit_from_ref

Parameters

out_ libgit2_d.types.git_annotated_commit**

pointer to store the git_annotated_commit result in

repo libgit2_d.types.git_repository*

repository that contains the given reference

ref_ const(libgit2_d.types.git_reference)*

reference to use to lookup the git_annotated_commit

Return Value

Type: int

0 on success or error code

Meta