Restoring previous commit: Added undo points for all useful situations.