From 8716b499e246496171aa8e9b84563b9486d66033 Mon Sep 17 00:00:00 2001 From: Nikolai Vladimirov Date: Thu, 3 Jan 2013 16:31:36 +0200 Subject: add option to allow git note overwrite --- include/git2/notes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/git2/notes.h') 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); /** -- cgit v1.2.1