diff options
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); +} |
