def _has_uncommitted_files():
 uncommitted_files = subprocess.check_output(GIT_IS_DIRTY_CMD.split(' '))
 return bool(len(uncommitted_files))

def _has_uncommitted_files ( ) : uncommitted_files = subprocess . check_output ( GIT_IS_DIRTY_CMD . split ( ' ' ) ) return bool ( len ( uncommitted_files ) )
returns true if the repo contains modified files that are uncommitted .