Refactor readDiff() to take hashes, not refs
Split checkout stuff into separate fns
Better var name