You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Folder patterns should be supported in the ignore file #426
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Currently, the .stignore file can only contain names not containing slashes, so you can't match on files only in a given subdirectory. We should support the use case of having only a .stignore in the repo root, and in that file saying for example "foo/bar/*/baz" to match all files called "baz" in a subdirectory to "foo/bar". This needs a better matcher than what currently exists, probably something like https://gist.github.com/kballard/272720
I'd settle for glob patterns that can handle paths and use ** to match multiple levels, similar to .gitignore. A regexp pattern matcher would be easier to implement (trivial in fact, compared to what we have now) but rather user-unfriendly.
@kattunga Beware though that quoting of glob characters (*, ? and []) is disabled on Windows due to \ being taken as a path separator. This is the case also when using slashes to separate names, so an ignore entry foo/bar\* will match all files under foo/bar/, contrary to how it might look.
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Jul 20, 2014
Yep.
calmh commentedon Aug 21, 2014
Currently, the .stignore file can only contain names not containing slashes, so you can't match on files only in a given subdirectory. We should support the use case of having only a .stignore in the repo root, and in that file saying for example "foo/bar/*/baz" to match all files called "baz" in a subdirectory to "foo/bar". This needs a better matcher than what currently exists, probably something like https://gist.github.com/kballard/272720
kattunga commentedon Aug 21, 2014
Patterns like "foo/bar/*/baz" should be more than enough.
calmh commentedon Aug 21, 2014
I'd settle for glob patterns that can handle paths and use ** to match multiple levels, similar to .gitignore. A regexp pattern matcher would be easier to implement (trivial in fact, compared to what we have now) but rather user-unfriendly.
kattunga commentedon Aug 26, 2014
As in .gitignore patterns should not be different between OS.
Path delimiter should be always '/' and absolute folders should not be allowed.
calmh commentedon Aug 27, 2014
\ is certainly an allowed path separator on Windows. It needs to stay that way. But / should work equally well.
kattunga commentedon Aug 27, 2014
Sorry, I tested it again and / works fine in windows too. I made a mistake when I tested it before.
calmh commentedon Aug 28, 2014
@kattunga Beware though that quoting of glob characters (
*,?and[]) is disabled on Windows due to \ being taken as a path separator. This is the case also when using slashes to separate names, so an ignore entryfoo/bar\*will match all files underfoo/bar/, contrary to how it might look.