Skip to content

Commit 25c6806

Browse files
committedSep 26, 2024
use new WorktreeRoot API provided by gix-diff
1 parent fe7ecd0 commit 25c6806

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)
Please sign in to comment.