diff options
author | Edward Thomson <ethomson@microsoft.com> | 2015-01-22 16:10:06 -0600 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-02-17 02:19:05 -0500 |
commit | fbdc9db3643e89e26d6e49f7b4e4ec1c668a4f0d (patch) | |
tree | 5658b262c790c12a64ac6d153fdd92f44b65fbbc /include/git2/filter.h | |
parent | 437ba9ad651a395b8b3105f5a2d2848194166c06 (diff) | |
download | libgit2-fbdc9db3643e89e26d6e49f7b4e4ec1c668a4f0d.tar.gz |
filters: introduce streaming filters
Add structures and preliminary functions to take a buffer, file or
blob and write the contents in chunks through an arbitrary number
of chained filters, finally writing into a user-provided function
accept the contents.
Diffstat (limited to 'include/git2/filter.h')
-rw-r--r-- | include/git2/filter.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/git2/filter.h b/include/git2/filter.h index 5b3f40394..600356c71 100644 --- a/include/git2/filter.h +++ b/include/git2/filter.h @@ -137,6 +137,22 @@ GIT_EXTERN(int) git_filter_list_apply_to_blob( git_filter_list *filters, git_blob *blob); +GIT_EXTERN(int) git_filter_list_stream_data( + git_filter_list *filters, + git_buf *data, + git_filter_stream *target); + +GIT_EXTERN(int) git_filter_list_stream_file( + git_filter_list *filters, + git_repository *repo, + const char *path, + git_filter_stream *target); + +GIT_EXTERN(int) git_filter_list_stream_blob( + git_filter_list *filters, + git_blob *blob, + git_filter_stream *target); + /** * Free a git_filter_list * |