facebookarchive / codemod

Codemod is a tool/library to assist you with large-scale codebase refactors that can be partially automated but still require human oversight and occasional intervention. Codemod was developed at Facebook and released as open source.
Apache License 2.0
4.11k stars 198 forks source link

Allow for obeying of .gitignore #105

Open hibachrach opened 5 years ago

hibachrach commented 5 years ago

I typically have to run codemod on several directories in my working repository with the -d option. I would run it in the root of my working repository, but it includes some large irrelevant files that slow codemod down. Is there a way to have it obey .gitignore?

modocache commented 5 years ago

This would be a good feature! Maybe codemod could use git ls-files or something to find the list of files, instead of Python's os.walk?