Don't add untracked files to the dist
Files are added to the dist, even when they are not tracked by git
. These files are generally not needed, so should not be added.
git ls-files -z
can get you a file listing, which is split with NULL's. If the module is not contained in a git
repository, fall back to the old method.
Edited by tyil