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
c1f4f45e
Commit
c1f4f45e
authored
Aug 27, 2021
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crlf: use streaming filters
parent
a8943c04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
src/crlf.c
+12
-1
No files found.
src/crlf.c
View file @
c1f4f45e
...
@@ -386,6 +386,17 @@ static int crlf_apply(
...
@@ -386,6 +386,17 @@ static int crlf_apply(
return
crlf_apply_to_odb
(
*
payload
,
to
,
from
,
src
);
return
crlf_apply_to_odb
(
*
payload
,
to
,
from
,
src
);
}
}
static
int
crlf_stream
(
git_writestream
**
out
,
git_filter
*
self
,
void
**
payload
,
const
git_filter_source
*
src
,
git_writestream
*
next
)
{
return
git_filter_buffered_stream_new
(
out
,
self
,
crlf_apply
,
NULL
,
payload
,
src
,
next
);
}
static
void
crlf_cleanup
(
static
void
crlf_cleanup
(
git_filter
*
self
,
git_filter
*
self
,
void
*
payload
)
void
*
payload
)
...
@@ -405,7 +416,7 @@ git_filter *git_crlf_filter_new(void)
...
@@ -405,7 +416,7 @@ git_filter *git_crlf_filter_new(void)
f
->
f
.
initialize
=
NULL
;
f
->
f
.
initialize
=
NULL
;
f
->
f
.
shutdown
=
git_filter_free
;
f
->
f
.
shutdown
=
git_filter_free
;
f
->
f
.
check
=
crlf_check
;
f
->
f
.
check
=
crlf_check
;
f
->
f
.
apply
=
crlf_apply
;
f
->
f
.
stream
=
crlf_stream
;
f
->
f
.
cleanup
=
crlf_cleanup
;
f
->
f
.
cleanup
=
crlf_cleanup
;
return
(
git_filter
*
)
f
;
return
(
git_filter
*
)
f
;
...
...
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