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
path: root/src
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-01-24 14:18:51 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2014-01-24 14:18:51 +0400
commitd0a3de720e085d335d9ad46dc00a23dd03eda793 (patch)
tree251fc381646f11e7bbac99046b81ec419c65b446 /src
parentca55fc6356a5edd838ca03b82f3601bd94e8d750 (diff)
note: rename the id getter to git_note_id()
This was left over when we did the general switch.
Diffstat (limited to 'src')
-rw-r--r--src/notes.c6
-rw-r--r--src/notes.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/notes.c b/src/notes.c
index 795904917..1ff0e35c3 100644
--- a/src/notes.c
+++ b/src/notes.c
@@ -313,7 +313,7 @@ static int note_new(git_note **out, git_oid *note_oid, git_blob *blob)
note = (git_note *)git__malloc(sizeof(git_note));
GITERR_CHECK_ALLOC(note);
- git_oid_cpy(&note->oid, note_oid);
+ git_oid_cpy(&note->id, note_oid);
note->message = git__strdup((char *)git_blob_rawcontent(blob));
GITERR_CHECK_ALLOC(note->message);
@@ -508,10 +508,10 @@ const char * git_note_message(const git_note *note)
return note->message;
}
-const git_oid * git_note_oid(const git_note *note)
+const git_oid * git_note_id(const git_note *note)
{
assert(note);
- return &note->oid;
+ return &note->id;
}
void git_note_free(git_note *note)
diff --git a/src/notes.h b/src/notes.h
index 39e18b621..e9cfa00fa 100644
--- a/src/notes.h
+++ b/src/notes.h
@@ -21,7 +21,7 @@
"Notes removed by 'git_note_remove' from libgit2"
struct git_note {
- git_oid oid;
+ git_oid id;
char *message;
};