Add repo branch create/delete commands #183

Merged
stephen merged 1 commit from feat/branch-mutation-cli into main 2026-06-17 18:24:55 +00:00
Owner

Wires the existing branch create/delete helpers into the CLI so ref mutation no longer requires fj api or raw git. src/cli/branch.rs already had create()/delete() backed by repo::create_branch()/delete_branch(), but only fj repo branches (list) was reachable. Adds a RepoBranchesSub subcommand under repo branches with create <name> [--from <ref>] and delete <name>, keeping the bare repo branches invocation on the list path. Three arg-parsing tests cover the list/create/delete dispatch. Closes #121.

Wires the existing branch create/delete helpers into the CLI so ref mutation no longer requires fj api or raw git. `src/cli/branch.rs` already had `create()`/`delete()` backed by `repo::create_branch()`/`delete_branch()`, but only `fj repo branches` (list) was reachable. Adds a `RepoBranchesSub` subcommand under `repo branches` with `create <name> [--from <ref>]` and `delete <name>`, keeping the bare `repo branches` invocation on the list path. Three arg-parsing tests cover the list/create/delete dispatch. Closes #121.
Add branch create/delete cli commands
All checks were successful
ci / check (pull_request) Successful in 10m13s
ci / coverage (pull_request) Successful in 2m4s
ci / live-e2e (pull_request) Successful in 1m53s
931976c790
stephen deleted branch feat/branch-mutation-cli 2026-06-17 18:24:55 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/fj!183
No description provided.