jashkenas/coffee-script — pull request #1847 by TrevorBurnham (2011-11-09 18:52:39+00:00)
Title: Re-fs.watching files on rename event

Some editors (e.g. Coda) rename temp files rather than directly overwriting files on save; `fs.watch` loses track of the file at that point. This patch makes `fs.watch` re-bind itself on `"rename"` events. See discussion at #1803, #1846, and at https://github.com/joyent/node/issues/2062.