Available on crate feature
workflow only.Expand description
Common multi-step compositions, one call apiece.
Reached through Repository::workflow, which returns a WorkflowOps
handle. Each method bundles two or three raw commands into a single async
call — the same things you’d usually script by hand.
use git_spawn::Repository;
let repo = Repository::open("/path/to/repo")?;
// Start a new feature branch off main.
repo.workflow().feature_branch("feature/widget", "main").await?;
// Stage everything dirty and commit it.
repo.workflow().commit_all("wip: widget").await?;
// Rebase the current branch onto its upstream.
repo.workflow().sync().await?;Workflow methods don’t add new behavior — they just spare callers from
chaining the existing builders by hand. If you need finer control (e.g.
add -u instead of add -A), reach for the raw commands directly.
Structs§
- Workflow
Ops - High-level workflow helpers, scoped to a
Repository.