nave pull
Sparse-checkout scanned repositories into the local cache.
Usage
Sparse-checkout scanned repos into the cache
Usage: nave pull
Options:
-h, --help Print help
What it does
For each repo in the scan index:
- If not cloned: shallow clone with a sparse-checkout cone limited to tracked paths.
- If cloned and in sync (local HEAD matches scan index HEAD): skip.
- If cloned but stale: fast-forward or re-fetch as appropriate.
- If cloned but diverged: re-clone (rare; occurs when the remote's default branch has been force-pushed).
Reports
On completion, pull logs:
cloned— new sparse clones createdupdated— existing clones advanced to match scan indexrecloned— clones blown away and rebuiltskipped— already up-to-date, no workfailed— clone or fetch failed (network, auth, deleted repo)sha_mismatches— local HEAD disagrees with what scan recorded (usually transient)
Design notes
- Only tracked files are fetched (sparse checkout cone from
tracked_paths). - Shallow by depth=1: no history, only the latest revision.
- No analysis, no parsing, no validation — those are the analysis layer's job.
- Idempotent: re-running produces no work if nothing has changed.
See Cache for the broader context.