Skip to content

Commit 2e80d74

Browse files
committed
Fix DiffOptions::force_binary to pass the correct flag
force_binary was passing GIT_DIFF_FORCE_TEXT (like force_text); change it to pass GIT_DIFF_FORCE_BINARY.
1 parent 196c566 commit 2e80d74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ impl DiffOptions {
775775

776776
/// Treat all files as binary, disabling text diffs
777777
pub fn force_binary(&mut self, force: bool) -> &mut DiffOptions {
778-
self.flag(raw::GIT_DIFF_FORCE_TEXT, force)
778+
self.flag(raw::GIT_DIFF_FORCE_BINARY, force)
779779
}
780780

781781
/// Ignore all whitespace

0 commit comments

Comments
 (0)