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
e2ea138d
Unverified
Commit
e2ea138d
authored
Jun 14, 2022
by
John Alden
Committed by
GitHub
Jun 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address feedback
Co-authored-by: Edward Thomson <ethomson@github.com>
parent
9c3edca5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/libgit2/filter.c
+11
-3
No files found.
src/libgit2/filter.c
View file @
e2ea138d
...
...
@@ -903,12 +903,20 @@ static int buffered_stream_close(git_writestream *s)
GIT_ASSERT_ARG
(
buffered_stream
);
#ifndef GIT_DEPRECATE_HARD
if
(
buffered_stream
->
write_fn
==
NULL
)
{
if
(
buffered_stream
->
write_fn
==
NULL
)
{
git_buf
legacy_output
=
GIT_BUF_INIT
,
legacy_input
=
GIT_BUF_INIT
;
legacy_output
.
ptr
=
buffered_stream
->
output
->
ptr
;
legacy_output
.
size
=
buffered_stream
->
output
->
size
;
legacy_input
.
ptr
=
buffered_stream
->
input
.
ptr
;
legacy_input
.
size
=
buffered_stream
->
input
.
size
;
error
=
buffered_stream
->
legacy_write_fn
(
buffered_stream
->
filter
,
buffered_stream
->
payload
,
(
git_buf
*
)
buffered_stream
->
output
,
(
git_buf
*
)
&
buffered_stream
->
input
,
&
legacy_
output
,
&
legacy_
input
,
buffered_stream
->
source
);
}
else
#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