Your regexp syntax is incorrect. You have the following:
syntax:regexp ^target*$
which means "ignore everything from the goal to the asterisk
Which cannot ignore them:
Core/target/classes/META-INF/MANIFEST.MF Core/target/classes/xxx/yyy/zzz/X.class
for two reasons - they begin with Core/ not target , and they do not end with an asterisk.
What do you probably mean:
syntax:regexp ^.*/target/.*$
which matches any that has /target/ in it (note that .* in regexp * for the glob style). However, ^ and $ only serve to enlist your regular expression, and you do not want it to be embedded - you want to find it anywhere on the line, so just do the following:
syntax:regexp /target/
The key to all this was that the files were marked ? , which means it is not ignored or added , if they were ignored, you will not see them at all without adding --ignored to the status command.
Ry4an brase
source share