def run(self, edit, unstage="file"):
        repo = self.get_repo()
        if not repo:
            return

        goto = None
        if unstage == "all":
            self.unstage_all(repo)
        elif unstage == "file":
            files = self.get_selected_files()
            staged = [f for s, f in files if s == STAGED_CHANGES]
            if staged:
                self.unstage(repo, staged)
                goto = self.logical_goto_next_file()

        self.update_status(goto)
dataset/ETHPy150Open SublimeGit/SublimeGit/sgit/status.py/GitStatusUnstageCommand.run/original