filebuf: add git_filebuf_flush()

This commit is contained in:
nulltoken 2012-05-27 19:54:53 +02:00
parent 4c977a61e5
commit 9bea8e8590
2 changed files with 6 additions and 0 deletions

View File

@ -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) {

View File

@ -81,5 +81,6 @@ int git_filebuf_commit(git_filebuf *lock, mode_t mode);
int git_filebuf_commit_at(git_filebuf *lock, const char *path, mode_t mode);
void git_filebuf_cleanup(git_filebuf *lock);
int git_filebuf_hash(git_oid *oid, git_filebuf *file);
int git_filebuf_flush(git_filebuf *file);
#endif