From a7a7ddbe0f097923feb9ed31502857891e02824f Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Sat, 18 Sep 2010 19:16:04 +0300 Subject: 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 --- src/commit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commit.c') diff --git a/src/commit.c b/src/commit.c index 8a3eb5ff9..ce3a4184c 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; } -- cgit v1.2.1