We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd366a5 commit 76b7ec6Copy full SHA for 76b7ec6
gitoxide-core/src/repository/diff.rs
@@ -141,7 +141,10 @@ pub fn file(
141
.path_and_mode()
142
.context(format!("rev-spec '{new_revspec}' must contain a path"))?;
143
144
- let mut resource_cache = repo.diff_resource_cache(gix::diff::blob::pipeline::Mode::ToGit, Default::default())?;
+ let mut resource_cache = repo.diff_resource_cache(
145
+ gix::diff::blob::pipeline::Mode::ToGitUnlessBinaryToTextIsPresent,
146
+ Default::default(),
147
+ )?;
148
149
resource_cache.set_resource(
150
old_blob_id.into(),
0 commit comments