1313
1414/**
1515 * @file git2/annotated_commit.h
16- * @brief Git annotated commit routines
16+ * @brief A commit and information about how it was looked up by the user.
1717 * @defgroup git_annotated_commit Git annotated commit routines
1818 * @ingroup Git
19+ *
20+ * An "annotated commit" is a commit that contains information about
21+ * how the commit was resolved, which can be used for maintaining the
22+ * user's "intent" through commands like merge and rebase. For example,
23+ * if a user wants to "merge HEAD" then an annotated commit is used to
24+ * both contain the HEAD commit _and_ the fact that it was resolved as
25+ * the HEAD ref.
1926 * @{
2027 */
2128GIT_BEGIN_DECL
@@ -25,7 +32,7 @@ GIT_BEGIN_DECL
2532 * The resulting git_annotated_commit must be freed with
2633 * `git_annotated_commit_free`.
2734 *
28- * @param out pointer to store the git_annotated_commit result in
35+ * @param[out] out pointer to store the git_annotated_commit result in
2936 * @param repo repository that contains the given reference
3037 * @param ref reference to use to lookup the git_annotated_commit
3138 * @return 0 on success or error code
@@ -40,7 +47,7 @@ GIT_EXTERN(int) git_annotated_commit_from_ref(
4047 * The resulting git_annotated_commit must be freed with
4148 * `git_annotated_commit_free`.
4249 *
43- * @param out pointer to store the git_annotated_commit result in
50+ * @param[out] out pointer to store the git_annotated_commit result in
4451 * @param repo repository that contains the given commit
4552 * @param branch_name name of the (remote) branch
4653 * @param remote_url url of the remote
@@ -67,7 +74,7 @@ GIT_EXTERN(int) git_annotated_commit_from_fetchhead(
6774 * most specific function (eg `git_annotated_commit_from_ref`)
6875 * instead of this one when that data is known.
6976 *
70- * @param out pointer to store the git_annotated_commit result in
77+ * @param[out] out pointer to store the git_annotated_commit result in
7178 * @param repo repository that contains the given commit
7279 * @param id the commit object id to lookup
7380 * @return 0 on success or error code
@@ -84,7 +91,7 @@ GIT_EXTERN(int) git_annotated_commit_lookup(
8491 * http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions for
8592 * information on the syntax accepted.
8693 *
87- * @param out pointer to store the git_annotated_commit result in
94+ * @param[out] out pointer to store the git_annotated_commit result in
8895 * @param repo repository that contains the given commit
8996 * @param revspec the extended sha syntax string to use to lookup the commit
9097 * @return 0 on success or error code
0 commit comments