def run(self, repo=None, path=None, cached=False):
        repo = repo or self.get_repo()
        if not repo:
            return

        path = path or repo

        title = self.get_view_title(path, cached)
        git_view = ('-cached' if cached else '') % 'diff%s'

        view = find_view_by_settings(self.window, git_view=git_view, git_repo=repo, git_diff_path=path)
        if not view:
            view = self.window.new_file()
            view.set_name(title)
            view.set_syntax_file(GIT_DIFF_VIEW_SYNTAX)
            view.set_scratch(True)
            view.set_read_only(True)

            view.settings().set('git_view', git_view)
            view.settings().set('git_repo', repo)
            view.settings().set('git_diff_path', path)
            view.settings().set('git_diff_cached', cached)
            view.settings().set('git_diff_unified', 3)

        self.window.focus_view(view)
        view.run_command('git_diff_refresh', {'path': path, 'cached': cached, 'run_move': True})
dataset/ETHPy150Open SublimeGit/SublimeGit/sgit/diff.py/GitDiffCommand.run/swapped operands of `%`