diff options
author | Ben Straub <bstraub@github.com> | 2012-04-30 09:58:43 -0700 |
---|---|---|
committer | Ben Straub <bstraub@github.com> | 2012-05-11 11:30:46 -0700 |
commit | bfc13e7985a9368f7932115bc3d395dd1379b03d (patch) | |
tree | 7f359f7479bf063fec4578372fc5b64415546666 /include/git2/revparse.h | |
parent | 38533d5acf6abc2c4266ea5cf5eb80bb819794f8 (diff) | |
download | libgit2-bfc13e7985a9368f7932115bc3d395dd1379b03d.tar.gz |
Adding comment documentation for rev-parse api.
Diffstat (limited to 'include/git2/revparse.h')
-rw-r--r-- | include/git2/revparse.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/include/git2/revparse.h b/include/git2/revparse.h index 3fd69d91..4567027e 100644 --- a/include/git2/revparse.h +++ b/include/git2/revparse.h @@ -11,12 +11,26 @@ #include "types.h" +/** + * @file git2/revparse.h + * @brief Git revision parsing routines + * @defgroup git_revparse Git revision parsing routines + * @ingroup Git + * @{ + */ GIT_BEGIN_DECL +/** + * Find an object, as specified by a revision string. See `man gitrevisions`, or the documentation + * for `git rev-parse` for information on the syntax accepted. + * + * @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) + */ GIT_EXTERN(int) git_revparse_single(git_object **out, git_repository *repo, const char *spec); -//GIT_EXTERN(int) git_revparse_multi(TODO); - +/** @} */ GIT_END_DECL - #endif |