We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WorktreeRoot
gix-diff
1 parent 080f495 commit 4b202bdCopy full SHA for 4b202bd
gix/src/repository/diff.rs
@@ -38,10 +38,10 @@ impl Repository {
38
mode,
39
self.attributes_only(
40
&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 {
+ if worktree_roots.is_unset() {
44
gix_worktree::stack::state::attributes::Source::IdMapping
+ } else {
+ gix_worktree::stack::state::attributes::Source::WorktreeThenIdMapping
45
},
46
)?
47
.inner,
0 commit comments