Fix the ! bug, better test draft
This commit is contained in:
@@ -2123,7 +2123,7 @@ impl LocalSnapshot {
|
||||
|
||||
let mut ignore_stack = IgnoreStack::none();
|
||||
for (parent_abs_path, ignore) in new_ignores.into_iter().rev() {
|
||||
if !ignore_stack.is_abs_path_ignored(parent_abs_path, true) {
|
||||
if ignore_stack.is_abs_path_ignored(parent_abs_path, true) {
|
||||
ignore_stack = IgnoreStack::all();
|
||||
break;
|
||||
} else if let Some(ignore) = ignore {
|
||||
@@ -2131,7 +2131,7 @@ impl LocalSnapshot {
|
||||
}
|
||||
}
|
||||
|
||||
if !ignore_stack.is_abs_path_ignored(abs_path, is_dir) {
|
||||
if ignore_stack.is_abs_path_ignored(abs_path, is_dir) {
|
||||
ignore_stack = IgnoreStack::all();
|
||||
}
|
||||
ignore_stack
|
||||
|
||||
Reference in New Issue
Block a user