Skip to content

Commit

Permalink
use new WorktreeRoot API provided by gix-diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Sep 13, 2024
1 parent 56fe2b0 commit 3b84cdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gix/src/repository/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ impl Repository {
mode,
self.attributes_only(
&index,
if worktree_roots.new_root.is_some() || worktree_roots.old_root.is_some() {
gix_worktree::stack::state::attributes::Source::WorktreeThenIdMapping
} else {
if worktree_roots.is_unset() {
gix_worktree::stack::state::attributes::Source::IdMapping
} else {
gix_worktree::stack::state::attributes::Source::WorktreeThenIdMapping
},
)?
.inner,
Expand Down

0 comments on commit 3b84cdf

Please sign in to comment.