Wire --all-refs into the CLI surface

main

Commit

Soph4mo ago

Adds --all-refs to sync, plan, replicate, bootstrap, fetch, and probe. For sync/plan/replicate/bootstrap the flag bundles AllRefs scope with BestEffort policy: the broader ref discovery only earns its keep when hidden-ref refusals downgrade to warnings instead of tanking the run. Probe and fetch get AllRefs as scope-only (neither pushes), with a tailored flag description so the help text doesn't lie about "warnings".

The unstable BootstrapRequest grows a BestEffort field so the CLI's RunE can mirror the sync-side coupling. Library callers keep the two halves decoupled via RefScope.AllRefs and SyncPolicy.BestEffort.

docs/usage.md documents the --all-refs example, the strict/best-effort split, and adds "warned" to the JSON output keys list.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com Entire-Checkpoint: 011ba13b7e3d

Checkpoints

does git-sync handle any ref or just branches

Claude CodeOpus 4.7[1m]
View session
Checkpoint 1