Skip to content

Folder patterns should be supported in the ignore file #426

Closed

Description

@kattunga

Folder patterns should be supported in the ignore file, like .gitignore.

Activity

  1. calmh commented on Jul 20, 2014

    @calmh
    Member

    Yep.

  2. added this to the milestone on Aug 12, 2014
  3. calmh commented on Aug 21, 2014

    @calmh
    Member

    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

  4. kattunga commented on Aug 21, 2014

    @kattunga
    Author

    Patterns like "foo/bar/*/baz" should be more than enough.

  5. calmh commented on Aug 21, 2014

    @calmh
    Member

    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.

  6. kattunga commented on Aug 26, 2014

    @kattunga
    Author

    As in .gitignore patterns should not be different between OS.
    Path delimiter should be always '/' and absolute folders should not be allowed.

  7. calmh commented on Aug 27, 2014

    @calmh
    Member

    \ is certainly an allowed path separator on Windows. It needs to stay that way. But / should work equally well.

  8. kattunga commented on Aug 27, 2014

    @kattunga
    Author

    Sorry, I tested it again and / works fine in windows too. I made a mistake when I tested it before.

  9. calmh commented on Aug 28, 2014

    @calmh
    Member

    @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.

  10. added
    frozen-due-to-age
    on Jun 17, 2017
  11. locked and limited conversation to collaborators on Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions