

def build_files_status(self, repo):
    status = ''
    (untracked, unstaged, staged) = self.get_files_status(repo)
    if ((not untracked) and (not unstaged) and (not staged)):
        status += (GIT_WORKING_DIR_CLEAN + '\n')
    if untracked:
        status += SECTIONS[UNTRACKED_FILES]
        for (s, f) in untracked:
            status += ('\t%s\n' % f.strip())
        status += '\n'
    if unstaged:
        status += (SECTIONS[UNSTAGED_CHANGES] if s else SECTIONS[CHANGES])
        for (s, f) in unstaged:
            status += ('\t%s %s\n' % (STATUS_LABELS[s], f))
        status += '\n'
    if staged:
        status += SECTIONS[STAGED_CHANGES]
        for (s, f) in staged:
            status += ('\t%s %s\n' % (STATUS_LABELS[s], f))
        status += '\n'
    return status

dataset/ETHPy150Open SublimeGit/SublimeGit/sgit/status.py GitStatusBuilder.build_files_status/VarMisuse@114/165 `staged`->`s`