diff.c: use diff_line_prefix() where applicable