summaryrefslogtreecommitdiff
path: root/src/diff.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/diff.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/diff.c')
-rw-r--r--src/diff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 781f23ec6..bc23e6b0d 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -589,7 +589,8 @@ int git_diff__oid_for_entry(
entry.path);
error = -1;
} else if (!(error = git_filter_list_load(
- &fl, diff->repo, NULL, entry.path, GIT_FILTER_TO_ODB)))
+ &fl, diff->repo, NULL, entry.path,
+ GIT_FILTER_TO_ODB, GIT_FILTER_OPT_ALLOW_UNSAFE)))
{
int fd = git_futils_open_ro(full_path.ptr);
if (fd < 0)