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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow for obeying of .gitignore

hibachrach opened this issue · comments

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?

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?