Memoize commits.  Don't write the file if it's the same as last time.
Ignore stupid OS X files