.stignore syntax

Is the following a valid syntax:

*
!**/
!**.rs
!**.toml

Valid syntax, but probably won’t match what you’re expecting to happen.

Could you describe or provide an example of what you’d like it to do?

You need to change the order, e.g. like this.

!*.rs
!*.toml
*

I’ve removed the other line, because I cannot deduce what it was supposed to match :sweat_smile:. Also changed the unnecessary double ** to single *.

1 Like