benjamn/commoner — pull request #37 by spicyj (2013-08-15 07:37:13+00:00)
Title: Tell grep to treat binary files as text

Without this, grep will output something like 'Binary file react/src/.DOMPropertyOperations.swp matches' instead of the actual match, which subsequently makes the code in BuildContext.prototype.getProvidedP unhappy since it doesn't see the real filename and there's no match for it to look at.

Adding the `--text` flag makes grep behave the same on binary files, which is ideal since we're not printing the intermediary output to a terminal anyway.

(Now I can actually build React while I have vim open!)