mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-05 14:24:27 +00:00
filebuf: add git_filebuf_flush()
This commit is contained in:
parent
4c977a61e5
commit
9bea8e8590
@ -130,6 +130,11 @@ GIT_INLINE(int) flush_buffer(git_filebuf *file)
|
|||||||
return result;
|
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)
|
static int write_normal(git_filebuf *file, void *source, size_t len)
|
||||||
{
|
{
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
|
@ -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);
|
int git_filebuf_commit_at(git_filebuf *lock, const char *path, mode_t mode);
|
||||||
void git_filebuf_cleanup(git_filebuf *lock);
|
void git_filebuf_cleanup(git_filebuf *lock);
|
||||||
int git_filebuf_hash(git_oid *oid, git_filebuf *file);
|
int git_filebuf_hash(git_oid *oid, git_filebuf *file);
|
||||||
|
int git_filebuf_flush(git_filebuf *file);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user