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>2013-04-11 04:10:17 +0400
committerVicent Marti <tanoku@gmail.com>2013-04-22 18:50:51 +0400
commitbadd85a61354ef7b62c5f8e53d740738e5ef1e57 (patch)
tree553f006c1b237de2a57ad6416e80db4ac8e6cf1a /src/commit.c
parentee12272d170d6a9d60f13d6de6129f56bfb2fbf6 (diff)
Use git_odb_object_data/_size whereever possible
This uses the odb object accessors so we can change the internals more easily...
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index 2057364b5..2cee44cd2 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -244,7 +244,8 @@ bad_buffer:
int git_commit__parse(git_commit *commit, git_odb_object *obj)
{
assert(commit);
- return git_commit__parse_buffer(commit, obj->buffer, obj->cached.size);
+ return git_commit__parse_buffer(
+ commit, git_odb_object_data(obj), git_odb_object_size(obj));
}
#define GIT_COMMIT_GETTER(_rvalue, _name, _return) \