Add unified diff (close #862)