diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-11-19 19:00:46 +0100 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-12-01 08:34:31 +0100 |
commit | cc1466264a385419aa4ebc3811846b038b3430d1 (patch) | |
tree | d3d9a6da47a845044a9c5b39f6b4920bd15b2740 /include/git2/revparse.h | |
parent | 84166facc9537a03d8aaaa415c9e8044d0239252 (diff) | |
download | libgit2-cc1466264a385419aa4ebc3811846b038b3430d1.tar.gz |
revparse: Deploy EINVALIDSPEC usage
Diffstat (limited to 'include/git2/revparse.h')
-rw-r--r-- | include/git2/revparse.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/revparse.h b/include/git2/revparse.h index 4567027e5..3df6fef7f 100644 --- a/include/git2/revparse.h +++ b/include/git2/revparse.h @@ -27,7 +27,8 @@ GIT_BEGIN_DECL * @param out pointer to output object * @param repo the repository to search in * @param spec the textual specification for an object - * @return on success, GIT_ERROR otherwise (use git_error_last for information about the error) + * @return 0 on success, GIT_ENOTFOUND, GIT_EAMBIGUOUS, + * GIT_EINVALIDSPEC or an error code */ GIT_EXTERN(int) git_revparse_single(git_object **out, git_repository *repo, const char *spec); |