Skip to main content

update

Function update 

Source
pub fn update(source: Option<Utf8PathBuf>, dry_run: bool) -> Result<()>
Expand description

yui update [--dry-run] — pull source repo and re-apply.

Equivalent to git -C $DOTFILES pull --ff-only && yui apply, but with the safety check that the source tree is clean first (otherwise the pull could mix upstream commits with the user’s in-progress edits in surprising ways). Bails on a dirty source rather than stashing — the user should commit consciously.

--dry-run only forwards to apply --dry-run; the pull itself always runs (it’s a read+merge operation, no half-state).