Skip to main content

refresh

Function refresh 

Source
pub fn refresh(
    store: &Store<'_>,
    sx: &SkillsEnv<'_>,
) -> Result<Option<Refresh>, CoreError>
Expand description

Brings the store copy up to date: an CopyState::Outdated copy is replaced by the bundled one (one commit, skill: update surjection ..., then the skill sync rewrites copies); a CopyState::Customized copy older than the bundled version is reported and left alone. None when there is nothing to say (not installed, current, newer, or not Surjection’s).