diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-01-06 11:49:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 11:49:00 +0000 |
commit | 27e34f9b9843f7bcc33a4ccfe3e395fe303cba63 (patch) | |
tree | 0f2bbf08b7def90fdf7f6785936f8632ae1e151a /src | |
parent | f0d7922c9bafff38e12978625f467aafebe75145 (diff) | |
parent | ddafbafef54677c3466260e52b135d5dff832624 (diff) | |
download | libgit2-master.tar.gz |
Merge pull request #5759 from JoshuaS3/mastermaster
Add documentation for git_blob_filter_options.version
Diffstat (limited to 'src')
-rw-r--r-- | src/blob.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/blob.c b/src/blob.c index 97069645c..545c10eb8 100644 --- a/src/blob.c +++ b/src/blob.c @@ -408,6 +408,15 @@ int git_blob_is_binary(const git_blob *blob) return git_buf_text_is_binary(&content); } +int git_blob_filter_options_init( + git_blob_filter_options *opts, + unsigned int version) +{ + GIT_INIT_STRUCTURE_FROM_TEMPLATE(opts, version, + git_blob_filter_options, GIT_BLOB_FILTER_OPTIONS_INIT); + return 0; +} + int git_blob_filter( git_buf *out, git_blob *blob, |