Strip last diff hunk to avoid including newline in output.