Skip to main content

pull_ff

Function pull_ff 

Source
pub async fn pull_ff(dir: &Utf8Path) -> Result<Option<()>>
Expand description

Fast-forward dir’s current branch from its tracked remote (#94, the --pull half of the kata apply --all ergonomics). --ff-only is intentional: if local commits diverge from the remote, the consumer’s working state is in a shape kata shouldn’t try to auto-merge — surface the failure and let the per-PJ error path report it.

Like dirty_files, Ok(None) means “not a git repo (or no upstream)” — the apply –all caller treats that as “nothing to pull, fall through”. Real errors (non-fast-forward, network failure, git missing) come back as Err.