Refactor changes to be ignored in diff. Fix bug that incorrectly ignored '-' changes.