parameters: (repo)
return_statement: return not (subprocess.check_output(cmd, cwd=repo).strip() or
                subprocess.check_output(cmd + ['--cached'], cwd=repo).strip())
docstring: Returns True if a git checkout is pristine.
docstring_summary: Returns True if a git checkout is pristine.
docstring_tokens: Returns True if a git checkout is pristine .
function: def IsPristine(repo):
    """Returns True if a git checkout is pristine."""
    cmd = ['git', 'diff', '--ignore-submodules']
    return not (subprocess.check_output(cmd, cwd=repo).strip() or
                subprocess.check_output(cmd + ['--cached'], cwd=repo).strip())
function_tokens: def IsPristine ( repo ) : cmd = [ 'git' , 'diff' , '--ignore-submodules' ] return not ( subprocess . check_output ( cmd , cwd = repo ) . strip ( ) or subprocess . check_output ( cmd + [ '--cached' ] , cwd = repo ) . strip ( ) )