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
4d6362b1
Commit
4d6362b1
authored
Jul 03, 2015
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3290 from libgit2/cmn/filter-doc
filter: add docs for streaming filters
parents
99090a85
a94d3e68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
include/git2/filter.h
+35
-2
No files found.
include/git2/filter.h
View file @
4d6362b1
...
@@ -137,7 +137,13 @@ GIT_EXTERN(int) git_filter_list_apply_to_data(
...
@@ -137,7 +137,13 @@ GIT_EXTERN(int) git_filter_list_apply_to_data(
git_buf
*
in
);
git_buf
*
in
);
/**
/**
* Apply filter list to the contents of a file on disk
* Apply a filter list to the contents of a file on disk
*
* @param out buffer into which to store the filtered file
* @param filters the list of filters to apply
* @param repo the repository in which to perform the filtering
* @param path the path of the file to filter, a relative path will be
* taken as relative to the workdir
*/
*/
GIT_EXTERN
(
int
)
git_filter_list_apply_to_file
(
GIT_EXTERN
(
int
)
git_filter_list_apply_to_file
(
git_buf
*
out
,
git_buf
*
out
,
...
@@ -146,24 +152,51 @@ GIT_EXTERN(int) git_filter_list_apply_to_file(
...
@@ -146,24 +152,51 @@ GIT_EXTERN(int) git_filter_list_apply_to_file(
const
char
*
path
);
const
char
*
path
);
/**
/**
* Apply filter list to the contents of a blob
* Apply a filter list to the contents of a blob
*
* @param out buffer into which to store the filtered file
* @param filters the list of filters to apply
* @param blob the blob to filter
*/
*/
GIT_EXTERN
(
int
)
git_filter_list_apply_to_blob
(
GIT_EXTERN
(
int
)
git_filter_list_apply_to_blob
(
git_buf
*
out
,
git_buf
*
out
,
git_filter_list
*
filters
,
git_filter_list
*
filters
,
git_blob
*
blob
);
git_blob
*
blob
);
/**
* Apply a filter list to an arbitrary buffer as a stream
*
* @param filters the list of filters to apply
* @param data the buffer to filter
* @param target the stream into which the data will be written
*/
GIT_EXTERN
(
int
)
git_filter_list_stream_data
(
GIT_EXTERN
(
int
)
git_filter_list_stream_data
(
git_filter_list
*
filters
,
git_filter_list
*
filters
,
git_buf
*
data
,
git_buf
*
data
,
git_writestream
*
target
);
git_writestream
*
target
);
/**
* Apply a filter list to a file as a stream
*
* @param filters the list of filters to apply
* @param repo the repository in which to perform the filtering
* @param path the path of the file to filter, a relative path will be
* taken as relative to the workdir
* @param target the stream into which the data will be written
*/
GIT_EXTERN
(
int
)
git_filter_list_stream_file
(
GIT_EXTERN
(
int
)
git_filter_list_stream_file
(
git_filter_list
*
filters
,
git_filter_list
*
filters
,
git_repository
*
repo
,
git_repository
*
repo
,
const
char
*
path
,
const
char
*
path
,
git_writestream
*
target
);
git_writestream
*
target
);
/**
* Apply a filter list to a blob as a stream
*
* @param filters the list of filters to apply
* @param blob the blob to filter
* @param target the stream into which the data will be written
*/
GIT_EXTERN
(
int
)
git_filter_list_stream_blob
(
GIT_EXTERN
(
int
)
git_filter_list_stream_blob
(
git_filter_list
*
filters
,
git_filter_list
*
filters
,
git_blob
*
blob
,
git_blob
*
blob
,
...
...
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