def METHOD_NAME(self, args: list[str], git_options: t.Optional[list[str]] = None) -> list[str]:
    """Run `git diff` and return the result as a list."""
    cmd = ['diff'] + args
    if git_options is None:
        git_options = ['-c', 'core.quotePath=']
    return self.run_git_split(git_options + cmd, '\n', str_errors='replace')