npx / vscode-hide-gitignored

19 stars 7 forks source link

Remove leading slashes from .gitignore patterns in subdirectories #3

Closed heavywatal closed 6 years ago

heavywatal commented 6 years ago

Slashes are duplicated when .gitignores in subdirectories are processed. For example, /config.h in src/.gitignore is translated to "src//config.h", which fails to exclude the file.

npx commented 6 years ago

@heavywatal thank you for your feedback!

I just tried it and for me it behaves correctly as follows:

src/.gitignore: /config.h  ->  src/config.h
src/.gitignore: config.h   ->  src/**/config.h
heavywatal commented 6 years ago

Sorry, my bad, I was using a different extension! Yours works perfectly!