Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Nov 10, 2024
1 parent f591dfb commit 5beab38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/info/git/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ fn compute_diff_with_parent(
if let (parent_tree_id, None) = parents {
let old_tree = parent_tree_id.object()?.into_tree();
let new_tree = commit.tree()?;
let changes = repo.diff_tree_to_tree(&old_tree, &new_tree, Options::default())?;
let changes =
repo.diff_tree_to_tree(&old_tree, &new_tree, Options::default().with_rewrites(None))?;
for change in changes.iter() {
let is_file_change = match change {
Change::Addition { entry_mode, .. } | Change::Modification { entry_mode, .. } => {
Expand Down

0 comments on commit 5beab38

Please sign in to comment.