Revert all changes based on a diff.