From 5ae9d296e3313be59a969cb8eab250c7c8f7307d Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 21 Jul 2014 12:25:03 -0400 Subject: git_rebase_finish: rewrite notes when finishing rebase --- include/git2/rebase.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/git2/rebase.h b/include/git2/rebase.h index e123ae506..d9cf2318e 100644 --- a/include/git2/rebase.h +++ b/include/git2/rebase.h @@ -28,6 +28,15 @@ typedef struct { * interoperability with other clients. */ int quiet; + + /** + * Canonical name of the notes reference used to rewrite notes for + * rebased commits when finishing the rebase; if NULL, the contents of + * the coniguration option `notes.rewriteRef` is examined, unless the + * configuration option `notes.rewrite.rebase` is set to false. If + * `notes.rewriteRef` is NULL, notes will not be rewritten. + */ + const char *rewrite_notes_ref; } git_rebase_options; #define GIT_REBASE_OPTIONS_VERSION 1 @@ -130,11 +139,13 @@ GIT_EXTERN(int) git_rebase_abort( * * @param repo The repository with the in-progress rebase * @param signature The identity that is finishing the rebase + * @param opts Options to specify how rebase is finished * @param Zero on success; -1 on error */ GIT_EXTERN(int) git_rebase_finish( git_repository *repo, - const git_signature *signature); + const git_signature *signature, + const git_rebase_options *opts); /** @} */ GIT_END_DECL -- cgit v1.2.3