git_annotated_commit_from_revspec

Creates a git_annotated_comit from a revision string.

See man gitrevisions, or http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions for information on the syntax accepted.

extern (C) nothrow @nogc
int
git_annotated_commit_from_revspec

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 commit

revspec const(char)*

the extended sha syntax string to use to lookup the commit

Return Value

Type: int

0 on success or error code

Meta