feat(editor,firmware): add :gl fast-forward pull command

Add Effect::Pull and the `:gl` command (fetch + fast-forward only, refuse on
divergence). The editor side is host-tested; the firmware arm is a stub posting
"pull: not wired yet (v0.7)" — the on-device fetch/fast-forward in git_sync is
v0.7 work (only push is wired today).
This commit is contained in:
Julien Calixte
2026-07-11 19:32:02 +02:00
parent 1d7448ba75
commit cb3160541d
2 changed files with 16 additions and 0 deletions

View File

@@ -175,6 +175,12 @@ fn main() -> anyhow::Result<()> {
#[cfg(not(feature = "git"))]
log::info!(":sync — saved; light build (no `git` feature) — push skipped");
}
Effect::Pull => {
// `:gl` — fetch + fast-forward from the remote. The on-device
// fetch/fast-forward on the git thread is v0.7 work (git_sync
// only exposes push today), so acknowledge and no-op for now.
ed.set_notice("pull: not wired yet (v0.7)");
}
}
// Keyboard attach/detach feeds the panel's disconnect flag.