Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-28 02:47:39 +0400
committerRussell Belfer <rb@github.com>2012-11-28 02:47:39 +0400
commit2bd5998c9cab0afdea2aba00ce35a70656ba9fda (patch)
tree64564d82a5fe3f6cbdc331efe6c5eaaf0f6e6e4c /src/notes.c
parent336d1275ca53e7acc0b1b28986513a3061260a22 (diff)
Remove git_note_data structure
Diffstat (limited to 'src/notes.c')
-rw-r--r--src/notes.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/notes.c b/src/notes.c
index debf64133..dd36cc2fe 100644
--- a/src/notes.c
+++ b/src/notes.c
@@ -534,7 +534,7 @@ static int process_entry_path(
int error = -1;
size_t i = 0, j = 0, len;
git_buf buf = GIT_BUF_INIT;
- git_note_data note_data;
+ git_oid annotated_object_id;
if ((error = git_buf_puts(&buf, entry_path)) < 0)
goto cleanup;
@@ -567,13 +567,10 @@ static int process_entry_path(
goto cleanup;
}
- if ((error = git_oid_fromstr(
- &note_data.annotated_object_oid, buf.ptr)) < 0)
+ if ((error = git_oid_fromstr(&annotated_object_id, buf.ptr)) < 0)
goto cleanup;
- git_oid_cpy(&note_data.blob_oid, note_oid);
-
- if (note_cb(&note_data, payload))
+ if (note_cb(note_oid, &annotated_object_id, payload))
error = GIT_EUSER;
cleanup: