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