vcs.detect_vcs()

Discover the enclosing VCS, preferring jj when repos are colocated.

Usage

Source

vcs.detect_vcs(
    start,
    *,
    jj_path=None,
    git_path=None,
    prefer="jj",
)