rerun icon indicating copy to clipboard operation
rerun copied to clipboard

unable to --ignore subdirectories in an included --dir

Open Bjvanminnen opened this issue 9 years ago • 1 comments

I have the following folder structure

├── other
│   ├── otherifle.js
│   └── subdir
│       └── subfile.js
├── rootfile.js
└── src
    └── file.js

If I run the following command, changes to other/subdir/subfile.js are ignored (as expected) rerun --ignore other/subdir/* echo test

However, if I explicitly include other, the ignore no longer works, and changes to subfile.js cause test to be re-echoed. rerun --dir other --ignore other/subdir/* echo test

Bjvanminnen avatar Jan 19 '16 17:01 Bjvanminnen

You've found a logical flaw in the config options. Basically, when an 'include' conflicts with an 'ignore', which takes priority?

alexch avatar Jan 24 '18 14:01 alexch