Skip to content

Commit 4b202bd

Browse files
committed
use new WorktreeRoot API provided by gix-diff
1 parent 080f495 commit 4b202bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gix/src/repository/diff.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ impl Repository {
3838
mode,
3939
self.attributes_only(
4040
&index,
41-
if worktree_roots.new_root.is_some() || worktree_roots.old_root.is_some() {
42-
gix_worktree::stack::state::attributes::Source::WorktreeThenIdMapping
43-
} else {
41+
if worktree_roots.is_unset() {
4442
gix_worktree::stack::state::attributes::Source::IdMapping
43+
} else {
44+
gix_worktree::stack::state::attributes::Source::WorktreeThenIdMapping
4545
},
4646
)?
4747
.inner,

0 commit comments

Comments
 (0)