Used syntax was invalid
pycache would also have work but would have match both directories and files.
The trailing slash target only directories.
As visible at git-scm.com/docs/gitignore double asterisks without slashes to target directories are invalid.
To be more specific, it looks like git is somehow accepting it, but that it doesn't respect specs, and therefore break other tools like ripgrep for example, which is following specs.
Used syntax was invalid
pycache
would also have work but would have match both directories and files. The trailing slash target only directories.As visible at git-scm.com/docs/gitignore double asterisks without slashes to target directories are invalid.
To be more specific, it looks like git is somehow accepting it, but that it doesn't respect specs, and therefore break other tools like ripgrep for example, which is following specs.
See BurntSushi/ripgrep#373 for example