Runs the same read-only checks open_repo() relies on, without starting a
server or mutating the repository: Git presence and version, repository
detection (including distinguishing a bare repository from no repository
at all), upstream configuration, whether the remote looks like GitHub,
credential-helper presence, and active commit hooks.
Value
An invisible gitneighbr_doctor_report: a list with ok (TRUE
unless any non-advisory check failed) and checks, a list of
gitneighbr_doctor_check objects (id, status — one of "ok",
"fail", "advisory", "skipped" — message, and an optional
detail list). Printed automatically; print again with print().
Examples
report <- doctor()
#> gitneighbr doctor
#> [OK] Git executable found at '/usr/bin/git'.
#> [OK] Git executable runs.
#> [OK] Git 2.56.1 (>= 2.34.0 required).
#> [OK] Inside a Git working tree at '/home/runner/work/gitneighbr/gitneighbr'.
#> [OK] Branch 'main' tracks 'origin/main'.
#> [OK] The 'origin' remote points to GitHub.
#> [!!] No `credential.helper` configured; authenticating to GitHub over HTTPS may prompt outside gitneighbr.
#> [OK] No active commit/push hooks.
#> [!!] No Git identity (name/email) configured yet; gitneighbr will help you set it before your first snapshot.
#> Overall: ready.
report$ok
#> [1] TRUE
