Closed jamuir closed 7 years ago
@raydac I'm not certain if this PR will be of interested to you, but we make use of it at Graphite.
The /EG
option could instead be generalized to accept a list of a directories that the user wants to exclude. If that would be preferred, then let me know and I could give it a try.
By the way, thank-you for creating JCP! We use it to enable/disable certain features when preparing patch sets for customers. It is really useful to us. Cheers! :-)
just to disable .git is a too corner case, but it is a good point to exclude some sub-folders of source folder during preprocessing, I have added /ED:
CLI option, so that now it is possible to disable through /ED:.git
or /ED:**/.git
awesome. thanks for adding "/ED"!
Use /EG to tell JCP to exclude the contents of ".git" directories from the files it processes.
This is useful for speeding up JCP (because fewer files are scanned), and, more importantly, it keeps JCP from crashing when processing git projects inside an android development tree.
Here is an example crash:
To be fair, the crash isn't JCP's fault. It happens because of the way the
repo
tool populates the android dev tree with git projects (.git/shallow
is a broken sym-link)./EG
is just a way of accommodating repo's behaviour.