summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-12-06 03:12:04 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-12-06 04:20:09 +0100
commit21083a712933248ecc71a09abd20d548b912b194 (patch)
treee98f76fd0ba19f655d416cde7c59662cc14a1044 /src
parentd43c7bd050cd461b13f4b5aa30f14010c5b2b611 (diff)
downloadlibgit2-21083a712933248ecc71a09abd20d548b912b194.tar.gz
notes: move the notes name argument
Make it consistent between git_note_create() and git_note_remote() by putting it after the repository.
Diffstat (limited to 'src')
-rw-r--r--src/notes.c2
-rw-r--r--src/rebase.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/notes.c b/src/notes.c
index 4b15925fd..8fdf388ab 100644
--- a/src/notes.c
+++ b/src/notes.c
@@ -455,9 +455,9 @@ int git_note_read(git_note **out, git_repository *repo,
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 allow_note_overwrite)
diff --git a/src/rebase.c b/src/rebase.c
index 6453ecc67..2681b3e6a 100644
--- a/src/rebase.c
+++ b/src/rebase.c
@@ -972,8 +972,8 @@ static int rebase_copy_note(
committer = who;
}
- error = git_note_create(&note_id, rebase->repo, git_note_author(note),
- committer, opts->rewrite_notes_ref, to, git_note_message(note), 0);
+ error = git_note_create(&note_id, rebase->repo, opts->rewrite_notes_ref,
+ git_note_author(note), committer, to, git_note_message(note), 0);
done:
git_note_free(note);