Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-05-27 21:54:53 +0400
committernulltoken <emeric.fermas@gmail.com>2012-05-27 21:54:53 +0400
commit9bea8e85908d4c4a788766d50a91be79829c016c (patch)
tree30e7bc3cf58f707b12361a3fef3a37fe0082a058 /src/filebuf.c
parent4c977a61e598f2230e9902aa80cfea8e89d94f88 (diff)
filebuf: add git_filebuf_flush()
Diffstat (limited to 'src/filebuf.c')
-rw-r--r--src/filebuf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/filebuf.c b/src/filebuf.c
index 6538aea66..876f8e3e7 100644
--- a/src/filebuf.c
+++ b/src/filebuf.c
@@ -130,6 +130,11 @@ GIT_INLINE(int) flush_buffer(git_filebuf *file)
return result;
}
+int git_filebuf_flush(git_filebuf *file)
+{
+ return flush_buffer(file);
+}
+
static int write_normal(git_filebuf *file, void *source, size_t len)
{
if (len > 0) {