Pointer to an user-allocated git_revspec struct where the result of the rev-parse will be stored
the repository to search in
the rev-parse spec to parse
0 on success, GIT_INVALIDSPEC, git_error_code.GIT_ENOTFOUND, git_error_code.GIT_EAMBIGUOUS or an error code
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.