summaryrefslogtreecommitdiff
path: root/src/blob.c
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-05-09 08:59:59 +0200
committerVicent Marti <vicent@github.com>2014-05-09 08:59:59 +0200
commite18d5e52e385c0cc2ad8d9d4fdd545517f170a11 (patch)
treec529a250e7a234dde7194510e4a6c4692a79a92e /src/blob.c
parent4df53a64a18aeea88a459183437cbd033cf4ca71 (diff)
parentbb45e39063669514b84ac5b47c3520cfe99396c3 (diff)
downloadlibgit2-e18d5e52e385c0cc2ad8d9d4fdd545517f170a11.tar.gz
Merge pull request #2331 from libgit2/rb/dont-stop-diff-on-safecrlf
Add filter options and ALLOW_UNSAFE
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/blob.c b/src/blob.c
index 0aa2516db..ab7dec67f 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -198,7 +198,8 @@ int git_blob__create_from_paths(
if (try_load_filters)
/* Load the filters for writing this file to the ODB */
error = git_filter_list_load(
- &fl, repo, NULL, hint_path, GIT_FILTER_TO_ODB);
+ &fl, repo, NULL, hint_path,
+ GIT_FILTER_TO_ODB, GIT_FILTER_OPT_DEFAULT);
if (error < 0)
/* well, that didn't work */;
@@ -356,7 +357,8 @@ int git_blob_filtered_content(
return 0;
if (!(error = git_filter_list_load(
- &fl, git_blob_owner(blob), blob, path, GIT_FILTER_TO_WORKTREE))) {
+ &fl, git_blob_owner(blob), blob, path,
+ GIT_FILTER_TO_WORKTREE, GIT_FILTER_OPT_DEFAULT))) {
error = git_filter_list_apply_to_blob(out, fl, blob);