summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-09-18 19:16:04 +0300
committerVicent Marti <tanoku@gmail.com>2010-09-18 19:16:04 +0300
commita7a7ddbe0f097923feb9ed31502857891e02824f (patch)
treed128c49197a2b0e3fa2a6406c896e1bccdb8a85f /src/commit.c
parent46f8566a13564f0566a80b3df5950d1938cd222b (diff)
downloadlibgit2-a7a7ddbe0f097923feb9ed31502857891e02824f.tar.gz
Add generic methods for object writeback
git_repository_object has now several internal methods to write back the object information in the repository. - git_repository__dbo_prepare_write() Prepares the DBO object to be modified - git_repository__dbo_write() Writes new bytes to the DBO object - git_repository__dbo_writeback() Writes back the changes to the repository Signed-off-by: Vicent Marti <tanoku@gmail.com>
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 8a3eb5ff..ce3a4184 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -69,14 +69,14 @@ int git_commit__parse(git_commit *commit, unsigned int parse_flags, int close_db
{
int error = 0;
- if ((error = git_repository__open_dbo((git_repository_object *)commit)) < 0)
+ if ((error = git_repository__dbo_open((git_repository_object *)commit)) < 0)
return error;
error = git_commit__parse_buffer(commit,
commit->object.dbo.data, commit->object.dbo.len, parse_flags);
if (close_db_object)
- git_repository__close_dbo((git_repository_object *)commit);
+ git_repository__dbo_close((git_repository_object *)commit);
return error;
}