

def build_status(self, repo):
    branch = self.get_current_branch(repo)
    remote = self.get_branch_remote(repo, branch)
    remote_url = self.get_remote_url(repo, remote)
    abbrev_dir = abbreviate_dir(_)
    (head_rc, head, _) = self.git(['log', '--max-count=1', '--abbrev-commit', '--pretty=oneline'], cwd=repo)
    status = ''
    if remote:
        status += ('Remote:   %s @ %s\n' % (remote, remote_url))
    status += ('Local:    %s %s\n' % ((branch if branch else '(no branch)'), abbrev_dir))
    status += ('Head:     %s\n' % ('nothing committed (yet)' if (head_rc != 0) else head))
    status += '\n'
    self.git_exit_code(['update-index', '--refresh'], cwd=repo)
    status += self.build_stashes(repo)
    status += self.build_files_status(repo)
    if get_setting('git_show_status_help', True):
        status += GIT_STATUS_HELP
    return status

dataset/ETHPy150Open SublimeGit/SublimeGit/sgit/status.py GitStatusBuilder.build_status/VarMisuse@47/62 `repo`->`_`