git_revparse_single

Find a single object, as specified by a revision string.

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

The returned object should be released with git_object_free when no longer needed.

extern (C) nothrow @nogc
int
git_revparse_single

Parameters

out_ libgit2_d.types.git_object**

pointer to output object

repo libgit2_d.types.git_repository*

the repository to search in

spec const(char)*

the textual specification for an object

Return Value

Type: int

0 on success, git_error_code.GIT_ENOTFOUND, git_error_code.GIT_EAMBIGUOUS, git_error_code.GIT_EINVALIDSPEC or an error code

Meta