def run(self, edit, goto=None):
        if not self.view.settings().get('git_view') == 'status':
            return

        repo = self.get_repo()
        if not repo:
            return

        status = self.build_status(repo)
        if not status:
            return

        self.view.set_read_only(False)
        self.view.replace(edit, sublime.Region(0, self.view.size()), status)
        self.view.set_read_only(True)

        if goto:
            self.goto(goto)
        else:
            self.goto(GOTO_DEFAULT)
dataset/ETHPy150Open SublimeGit/SublimeGit/sgit/status.py/GitStatusRefreshCommand.run/original