summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-12-05 23:37:05 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2014-12-05 23:37:05 -0500
commitdf86d43cf8e7199fc6f32efd3a4b0c53217a397d (patch)
tree7cb19a94a388cf1ace6df5a77a7ada75d39d77f7 /include
parentd43c7bd050cd461b13f4b5aa30f14010c5b2b611 (diff)
parentbfa6cdbf13be242df0cde6cd6e51a005600c0f04 (diff)
downloadlibgit2-df86d43cf8e7199fc6f32efd3a4b0c53217a397d.tar.gz
Merge pull request #2747 from libgit2/cmn/notes-consistency
Notes API consistency fixes
Diffstat (limited to 'include')
-rw-r--r--include/git2/notes.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/git2/notes.h b/include/git2/notes.h
index 1a7794a5c..bb7c02dda 100644
--- a/include/git2/notes.h
+++ b/include/git2/notes.h
@@ -59,14 +59,12 @@ GIT_EXTERN(int) git_note_iterator_new(
GIT_EXTERN(void) git_note_iterator_free(git_note_iterator *it);
/**
- * Returns the current item (note_id and annotated_id) and advance the iterator
+ * Return the current item (note_id and annotated_id) and advance the iterator
* internally to the next value
*
- * The notes must not be freed manually by the user.
- *
- * @param it pointer to the iterator
* @param note_id id of blob containing the message
* @param annotated_id id of the git object being annotated
+ * @param it pointer to the iterator
*
* @return 0 (no error), GIT_ITEROVER (iteration is done) or an error code
* (negative value)
@@ -135,10 +133,10 @@ GIT_EXTERN(const git_oid *) git_note_id(const git_note *note);
*
* @param out pointer to store the OID (optional); NULL in case of error
* @param repo repository where to store the note
- * @param author signature of the notes commit author
- * @param committer signature of the notes commit committer
* @param notes_ref canonical name of the reference to use (optional);
* defaults to "refs/notes/commits"
+ * @param author signature of the notes commit author
+ * @param committer signature of the notes commit committer
* @param oid OID of the git object to decorate
* @param note Content of the note to add for object oid
* @param force Overwrite existing note
@@ -148,9 +146,9 @@ GIT_EXTERN(const git_oid *) git_note_id(const git_note *note);
GIT_EXTERN(int) git_note_create(
git_oid *out,
git_repository *repo,
+ const char *notes_ref,
const git_signature *author,
const git_signature *committer,
- const char *notes_ref,
const git_oid *oid,
const char *note,
int force);