Add a .dirty class to the SideView.
Apply a .dirty class to lines in a dirty hunk.
Style .dirty lines and SideViews.

Hide the revert button while until the side is dirty.