Skip to main content

selects_attribute_source

Function selects_attribute_source 

Source
pub fn selects_attribute_source(globals: &[OsString]) -> bool
Expand description

What: Whether the global options before cli-git choose an attribute source: --attr-source, -c attr.tree=... or --config-env=attr.tree=.... Why: Git would then take its attributes from a tree, which the conversion’s content check does not read, so the check refuses to decide by content.

In TS you’d write (pseudocode):

function selectsAttributeSource(globals: string[]): boolean;