git_revparse

Parse a revision string for from, to, and intent.

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_revparse

Parameters

revspec .git_revspec*

Pointer to an user-allocated git_revspec struct where the result of the rev-parse will be stored

repo libgit2_d.types.git_repository*

the repository to search in

spec const(char)*

the rev-parse spec to parse

Return Value

Type: int

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

Meta