diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-09-18 19:16:04 +0300 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-09-18 19:16:04 +0300 |
commit | a7a7ddbe0f097923feb9ed31502857891e02824f (patch) | |
tree | d128c49197a2b0e3fa2a6406c896e1bccdb8a85f /src/tree.c | |
parent | 46f8566a13564f0566a80b3df5950d1938cd222b (diff) | |
download | libgit2-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/tree.c')
-rw-r--r-- | src/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree.c b/src/tree.c index 6760654f6..7599c3fc2 100644 --- a/src/tree.c +++ b/src/tree.c @@ -107,7 +107,7 @@ int git_tree__parse(git_tree *tree) if (tree->entries != NULL) return GIT_SUCCESS; - error = git_repository__open_dbo((git_repository_object *)tree); + error = git_repository__dbo_open((git_repository_object *)tree); if (error < 0) return error; @@ -155,6 +155,6 @@ int git_tree__parse(git_tree *tree) buffer += GIT_OID_RAWSZ; } - git_repository__close_dbo((git_repository_object *)tree); + git_repository__dbo_close((git_repository_object *)tree); return error; } |