Skip to main content

present

Function present 

Source
pub fn present(prefix: &str) -> BTreeSet<String>
Expand description

Which keys under prefix are set at all — one git call for the whole family.

This runs on the commit path, where four independent --get calls would be four processes spent discovering that nobody has configured anything. One --get-regexp answers that, and only the keys it names are read for real. Same shape as registry::Overrides::read, for the same reason.

Names come back lowercased. Git lowercases the section and key parts of every name it prints, so amont.commit.subjectMax is reported as amont.commit.subjectmax. Keys are case-insensitive on lookup, so this only affects comparison here — hence is_present rather than a bare contains.