diff options
| author | Russell Belfer <rb@github.com> | 2013-09-12 14:48:24 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-09-17 09:31:45 -0700 |
| commit | b47349b8dc742943e063cb3d755b9db66203e3d9 (patch) | |
| tree | 8c424b2c07cc7b8cd63e6ef5153ee368036f8446 /include/git2/sys | |
| parent | 0e32635fcf9a874fe66f871e88c0bbc0511544f1 (diff) | |
| download | libgit2-b47349b8dc742943e063cb3d755b9db66203e3d9.tar.gz | |
Port tests from PR 1683
This ports over some of the tests from
https://github.com/libgit2/libgit2/pull/1683
by @yorah and @ethomson
Diffstat (limited to 'include/git2/sys')
| -rw-r--r-- | include/git2/sys/filter.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/git2/sys/filter.h b/include/git2/sys/filter.h index 36e97fe91..9a6720a3e 100644 --- a/include/git2/sys/filter.h +++ b/include/git2/sys/filter.h @@ -60,6 +60,19 @@ GIT_EXTERN(int) git_filter_list_push( git_filter_list *fl, git_filter *filter, void *payload); /** + * Look up how many filters are in the list + * + * We will attempt to apply all of these filters to any data passed in, + * but note that the filter apply action still has the option of skipping + * data that is passed in (for example, the CRLF filter will skip data + * that appears to be binary). + * + * @param fl A filter list + * @return The number of filters in the list + */ +GIT_EXTERN(size_t) git_filter_list_length(const git_filter_list *fl); + +/** * A filter source represents a file/blob to be processed */ typedef struct git_filter_source git_filter_source; |
