diff options
| author | Vicent Marti <tanoku@gmail.com> | 2010-09-20 21:39:11 +0300 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2010-09-20 21:39:11 +0300 |
| commit | d45b4a9a1bcbb157a4f02cf5ed23fde5222db9c8 (patch) | |
| tree | 554847491982e4256559938b1dab33730b2cffcb /src/repository.h | |
| parent | 0c3596f18a6f07d8a61f8d6e2fd730a276a51599 (diff) | |
| download | libgit2-d45b4a9a1bcbb157a4f02cf5ed23fde5222db9c8.tar.gz | |
Add support for in-memory objects
All repository objects can now be created from scratch in memory using
either the git_object_new() method, or the corresponding git_XXX_new()
for each object.
So far, only git_commits can be written back to disk once created in
memory.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/repository.h')
| -rw-r--r-- | src/repository.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/repository.h b/src/repository.h index 5074c614..9a7bd24b 100644 --- a/src/repository.h +++ b/src/repository.h @@ -12,7 +12,7 @@ typedef struct { git_rawobj raw; void *write_ptr; size_t written_bytes; - int open:1, out_of_sync:1; + int open:1; } git_odb_source; struct git_object { @@ -30,8 +30,6 @@ struct git_repository { int git_object__source_open(git_object *object); void git_object__source_close(git_object *object); -void git_object__source_prepare_write(git_object *object); -int git_object__source_writeback(git_object *object); int git__source_printf(git_odb_source *source, const char *format, ...); int git__source_write(git_odb_source *source, const void *bytes, size_t len); |
