summaryrefslogtreecommitdiff
path: root/include/git2/notes.h
diff options
context:
space:
mode:
authorNikolai Vladimirov <nikolay@vladimiroff.com>2013-01-03 16:31:36 +0200
committerNikolai Vladimirov <nikolay@vladimiroff.com>2013-01-03 16:31:36 +0200
commit8716b499e246496171aa8e9b84563b9486d66033 (patch)
treeab70ff46732e081e74b3eb16f65295c92f31c68f /include/git2/notes.h
parent4a44087ae75a63ab0c10be215722a8a24f1187e7 (diff)
downloadlibgit2-8716b499e246496171aa8e9b84563b9486d66033.tar.gz
add option to allow git note overwrite
Diffstat (limited to 'include/git2/notes.h')
-rw-r--r--include/git2/notes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/git2/notes.h b/include/git2/notes.h
index ae66975cd..ddd54b039 100644
--- a/include/git2/notes.h
+++ b/include/git2/notes.h
@@ -76,6 +76,7 @@ GIT_EXTERN(const git_oid *) git_note_oid(const git_note *note);
* defaults to "refs/notes/commits"
* @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
*
* @return 0 or an error code
*/
@@ -86,7 +87,8 @@ GIT_EXTERN(int) git_note_create(
const git_signature *committer,
const char *notes_ref,
const git_oid *oid,
- const char *note);
+ const char *note,
+ int force);
/**