I want to ignore all except a few folders and files.
I saw examples with regexp. But I don't understand well the regexp and there is different implementations of the regexp. So, I'm not sure that it will always work correctly.
Is there a way to invert a glob expressions?
In node-glob I could write:
!(pattern|pattern|pattern)
Matches anything that does not match any of the patterns provided.
But it doesn't work for Mercurial.