diff options
author | Andreas Ericsson <ae@op5.se> | 2008-11-29 15:28:12 +0100 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-12-02 09:17:42 -0800 |
commit | 4188d28f1c38240392d896fc79561cc461fb12c0 (patch) | |
tree | 3d40a87326d25342300fb50d78744671440c5408 /src/git/fileops.h | |
parent | ec250c6e18e56d12714f9010e1b15e5feec5f473 (diff) | |
download | libgit2-4188d28f1c38240392d896fc79561cc461fb12c0.tar.gz |
Add an io caching layer to the gitfo api
The idea is taken from Junio's work in read-cache.c, where
it's used for writing out the index without tap-dancing on
the poor harddrive. Since it's almost certainly useful for
cached writing of packfiles too, we turn it into a generic
API, making it perfectly simple to reuse it later.
gitfo_write_cached() has the same contract as gitfo_write(), it
returns GIT_SUCCESS if all bytes are successfully written (or were
at least buffered for later writing), and <0 if an error occurs
during buffer writing.
Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/git/fileops.h')
0 files changed, 0 insertions, 0 deletions