diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2019-07-21 11:03:01 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-08-11 20:47:59 +0100 |
| commit | fa1a4c77f5f2c504f900035496e1b483acac412b (patch) | |
| tree | 01e58502b1ebdf2988c6b01fde0290a72556aee3 /src/blob.c | |
| parent | a008ceeaf774484cc0b5d10b7f2fcd1592c354bb (diff) | |
| download | libgit2-fa1a4c77f5f2c504f900035496e1b483acac412b.tar.gz | |
blob: deprecate `git_blob_filtered_content`
Users should now use `git_blob_filter`.
Diffstat (limited to 'src/blob.c')
| -rw-r--r-- | src/blob.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/blob.c b/src/blob.c index efc9fc884..1af3131ba 100644 --- a/src/blob.c +++ b/src/blob.c @@ -437,22 +437,6 @@ int git_blob_filter( return error; } -int git_blob_filtered_content( - git_buf *out, - git_blob *blob, - const char *path, - int check_for_binary_data) -{ - git_blob_filter_options opts = GIT_BLOB_FILTER_OPTIONS_INIT; - - if (check_for_binary_data) - opts.flags |= GIT_BLOB_FILTER_CHECK_FOR_BINARY; - else - opts.flags &= ~GIT_BLOB_FILTER_CHECK_FOR_BINARY; - - return git_blob_filter(out, blob, path, &opts); -} - /* Deprecated functions */ int git_blob_create_frombuffer( @@ -485,3 +469,19 @@ int git_blob_create_fromstream_commit( { return git_blob_create_from_stream_commit(out, stream); } + +int git_blob_filtered_content( + git_buf *out, + git_blob *blob, + const char *path, + int check_for_binary_data) +{ + git_blob_filter_options opts = GIT_BLOB_FILTER_OPTIONS_INIT; + + if (check_for_binary_data) + opts.flags |= GIT_BLOB_FILTER_CHECK_FOR_BINARY; + else + opts.flags &= ~GIT_BLOB_FILTER_CHECK_FOR_BINARY; + + return git_blob_filter(out, blob, path, &opts); +} |
