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
f7c0125f
Commit
f7c0125f
authored
Feb 18, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter streams: base -> parent
parent
b75f15aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
src/filter.c
+8
-8
tests/filter/stream.c
+4
-4
No files found.
src/filter.c
View file @
f7c0125f
...
...
@@ -624,7 +624,7 @@ static int filter_list_out_buffer_from_raw(
}
struct
buf_stream
{
git_writestream
base
;
git_writestream
parent
;
git_buf
*
target
;
bool
complete
;
};
...
...
@@ -660,9 +660,9 @@ static void buf_stream_init(struct buf_stream *writer, git_buf *target)
{
memset
(
writer
,
0
,
sizeof
(
struct
buf_stream
));
writer
->
base
.
write
=
buf_stream_write
;
writer
->
base
.
close
=
buf_stream_close
;
writer
->
base
.
free
=
buf_stream_free
;
writer
->
parent
.
write
=
buf_stream_write
;
writer
->
parent
.
close
=
buf_stream_close
;
writer
->
parent
.
free
=
buf_stream_free
;
writer
->
target
=
target
;
git_buf_clear
(
target
);
...
...
@@ -744,7 +744,7 @@ int git_filter_list_apply_to_blob(
}
struct
proxy_stream
{
git_writestream
base
;
git_writestream
parent
;
git_filter
*
filter
;
const
git_filter_source
*
source
;
void
**
payload
;
...
...
@@ -815,9 +815,9 @@ static int proxy_stream_init(
struct
proxy_stream
*
proxy_stream
=
git__calloc
(
1
,
sizeof
(
struct
proxy_stream
));
GITERR_CHECK_ALLOC
(
proxy_stream
);
proxy_stream
->
base
.
write
=
proxy_stream_write
;
proxy_stream
->
base
.
close
=
proxy_stream_close
;
proxy_stream
->
base
.
free
=
proxy_stream_free
;
proxy_stream
->
parent
.
write
=
proxy_stream_write
;
proxy_stream
->
parent
.
close
=
proxy_stream_close
;
proxy_stream
->
parent
.
free
=
proxy_stream_free
;
proxy_stream
->
filter
=
filter
;
proxy_stream
->
payload
=
payload
;
proxy_stream
->
source
=
source
;
...
...
tests/filter/stream.c
View file @
f7c0125f
...
...
@@ -30,7 +30,7 @@ void test_filter_stream__cleanup(void)
#define CHUNKSIZE 10240
struct
compress_stream
{
git_writestream
base
;
git_writestream
parent
;
git_writestream
*
next
;
git_filter_mode_t
mode
;
char
current
;
...
...
@@ -113,9 +113,9 @@ static int compress_filter_stream_init(
GIT_UNUSED
(
self
);
GIT_UNUSED
(
payload
);
stream
->
base
.
write
=
compress_stream_write
;
stream
->
base
.
close
=
compress_stream_close
;
stream
->
base
.
free
=
compress_stream_free
;
stream
->
parent
.
write
=
compress_stream_write
;
stream
->
parent
.
close
=
compress_stream_close
;
stream
->
parent
.
free
=
compress_stream_free
;
stream
->
next
=
next
;
stream
->
mode
=
git_filter_source_mode
(
src
);
...
...
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