Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
9bea8e85
Commit
9bea8e85
authored
May 27, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filebuf: add git_filebuf_flush()
parent
4c977a61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
src/filebuf.c
+5
-0
src/filebuf.h
+1
-0
No files found.
src/filebuf.c
View file @
9bea8e85
...
@@ -130,6 +130,11 @@ GIT_INLINE(int) flush_buffer(git_filebuf *file)
...
@@ -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
)
{
...
...
src/filebuf.h
View file @
9bea8e85
...
@@ -81,5 +81,6 @@ int git_filebuf_commit(git_filebuf *lock, mode_t mode);
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment