torchcell.utils.repo_root

repo_root(from_path: str) → str | None[source]

Walk up from from_path to the enclosing checkout root, or None if outside one.