rust/hg-core/src/dirstate/status.rs
changeset 47329 717a94b423b9
parent 47113 be579775c2d9
parent 47317 c8f62920f07a
child 47335 ed1583a845d2
--- a/rust/hg-core/src/dirstate/status.rs	Wed May 26 21:46:45 2021 +0200
+++ b/rust/hg-core/src/dirstate/status.rs	Fri May 28 17:33:20 2021 -0400
@@ -583,9 +583,11 @@
                         .unwrap();
                 }
             } else if self.is_ignored(&filename) && self.options.list_ignored {
-                files_sender
-                    .send((filename.to_owned(), Dispatch::Ignored))
-                    .unwrap();
+                if self.matcher.matches(&filename) {
+                    files_sender
+                        .send((filename.to_owned(), Dispatch::Ignored))
+                        .unwrap();
+                }
             }
         } else if let Some(entry) = entry_option {
             // Used to be a file or a folder, now something else.