pyrus/Pyrus_Developer — Issue #9: Ignore VCS files during `pyrus.phar make`
Author: saltybeagle
Created: 2011-10-22 13:20:01+00:00
State: open

Originally from https://github.com/pyrus/Pyrus/issues/72, @fpoirotte —

When running `pyrus.phar make ...`, it will create/update a package.xml file by recursively scanning directories from a standard layout.
While doing so, it picks up VCS related files (in my case, the ".git" directory from a git submodule).

I think such directories should be ignored by default (maybe with an option to override the patterns in case you want to include some of those files).
For example, most tasks in Phing will ignore the following directories by default:

* .git
* .svn
* CVS
* .bzr
* .hg

The same could also apply to files (to prevent files such as "foo.php.bak", "foo.php~", ".foobar.swp", etc. from being added to the package).