.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.
.distignoreis very simplistic: it looks for those files anywhere.Let's say you have a directory called
srcin your root, as many WordPress plugins do. Okay, so you addsrcto.distignore.But now, if you have a
srcdirectory anywhere deeper in your hierarchy, that's gonna get stripped out. Oof.It would be lovely if all the features of
.gitignorewere 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.