def has_untracked_files(directory=None):
    out = check_output('git status', shell=True, cwd=directory)
    if '# Untracked files:' in out:
        return True
    return False
Returns True is the working branch has untracked files, False otherwise.
dataset/ETHPy150Open ros-infrastructure/bloom/bloom/git.py/has_untracked_files