Skip to content

Allow for leading slashes in .distignore to anchor to the root #47

@markjaquith

Description

@markjaquith

.distignore is very simplistic: it looks for those files anywhere.

Let's say you have a directory called src in your root, as many WordPress plugins do. Okay, so you add src to .distignore.

But now, if you have a src directory anywhere deeper in your hierarchy, that's gonna get stripped out. Oof.

It would be lovely if all the features of .gitignore were supported, but at the very least, it would be good if root-anchoring were allowed, so that rules meant for one specific file or directory do not get applied deep within your tree.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions