fix: pass diff_opts parameter to diff_tree_to_tree function call in trees function

This commit is contained in:
Nikita Galaiko 2023-10-03 11:57:39 +02:00 committed by GitButler
parent a6c6c90757
commit 30e6026785

View File

@ -62,7 +62,7 @@ pub fn trees(
.show_binary(true)
.show_untracked_content(true);
let diff = repository.diff_tree_to_tree(Some(old_tree), Some(new_tree), None)?;
let diff = repository.diff_tree_to_tree(Some(old_tree), Some(new_tree), Some(&mut diff_opts))?;
hunks_by_filepath(repository, &diff)
}