Show similarity in diff

Original patch by techlivezh