summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-07-09 02:37:16 +0200
committerVicent Marti <tanoku@gmail.com>2011-07-09 02:40:16 +0200
commit06c43821b94dcf9fa4f95f29c12f77d18a402690 (patch)
tree219e1f975109df1989bdcd86611e59ccf1ca403e /src/commit.c
parentafeecf4f262b74270368ef8a70c582ea9d5a18e8 (diff)
downloadlibgit2-06c43821b94dcf9fa4f95f29c12f77d18a402690.tar.gz
Remove unused methods
The direct-writes commit left some (slow) internals methods that were no longer needed. These have been removed. Also, the Reflog code was using the old `git_signature__write`, so it has been rewritten to use a normal buffer and the new `writebuf` signature writer. It's now slightly simpler and faster.
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commit.c b/src/commit.c
index 05f75731..fc484873 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -191,14 +191,14 @@ int commit_parse_buffer(git_commit *commit, const void *data, size_t len)
git_vector_init(&commit->parent_oids, 4, NULL);
- if ((error = git__parse_oid(&commit->tree_oid, &buffer, buffer_end, "tree ")) < GIT_SUCCESS)
+ if ((error = git_oid__parse(&commit->tree_oid, &buffer, buffer_end, "tree ")) < GIT_SUCCESS)
return git__rethrow(error, "Failed to parse buffer");
/*
* TODO: commit grafts!
*/
- while (git__parse_oid(&parent_oid, &buffer, buffer_end, "parent ") == GIT_SUCCESS) {
+ while (git_oid__parse(&parent_oid, &buffer, buffer_end, "parent ") == GIT_SUCCESS) {
git_oid *new_oid;
new_oid = git__malloc(sizeof(git_oid));