def modified_lines(self, r, file_name):
cmd = self.file_diff_cmd(r, file_name)<EOL>diff = shell_out_ignore_exitcode(cmd, cwd=self.root)<EOL>return list(self.modified_lines_from_diff(diff))<EOL>
Returns the line numbers of a file which have been changed.