vcspull config¶
vcspull rarely reads just one file. vcspull config ls answers the question
that follows from that: standing here, which files are in effect, and which
one wins? Reach for it when vcspull sync picks up a repository you did not
expect, or refuses one you did.
Command¶
Inspect the configuration scopes in effect.
‘vcspull config ls’ prints every configuration file vcspull would load from the current directory, weakest first, with its scope, its repository count, and whether a nearer file overrode any of its entries.
Usage¶
usage: vcspull config [-h] [--trust-project] [--no-project] {ls} ...
Examples¶
$ vcspull config ls
$ vcspull --no-project config ls
Options¶
Reading the report¶
$ vcspull config ls
user ~/.vcspull.yaml 2 repos (1 overridden)
project ~/work/proj/.vcspull.yaml 1 repo
2 repositories in effect.
Rows run weakest to strongest, the same order the scopes resolve in. The count is what each file declares; “overridden” is how many of those a nearer file replaced. The final line is the total you will actually sync.
Diagnosing a refusal¶
A project config that would check a repository out beyond its own directory
needs trust before it loads. config ls shows it rather
than dropping it, and never prompts — this is the command you run because
something else refused:
user ~/.vcspull.yaml 2 repos
project ~/work/proj/.vcspull.yaml 1 repo
project ~/work/proj/escaping/.vcspull.yaml 1 repo (untrusted)
3 repositories in effect.
Untrusted configs are not loaded. Allow one with 'vcspull trust DIR'.
Pass --trust-project (or export VCSPULL_YES=1) to preview effective counts
as if untrusted project configs were authorized:
$ vcspull config ls --trust-project
Ignoring the project scope¶
$ vcspull config ls --no-project
Both vcspull --no-project config ls and vcspull config ls --no-project
work, or export VCSPULL_NO_PROJECT=1 to omit ancestor project configs across
your shell session.