automatically show relevant diff during certain operations