Add repo branch create/delete commands #183
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/branch-mutation-cli"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wires the existing branch create/delete helpers into the CLI so ref mutation no longer requires fj api or raw git.
src/cli/branch.rsalready hadcreate()/delete()backed byrepo::create_branch()/delete_branch(), but onlyfj repo branches(list) was reachable. Adds aRepoBranchesSubsubcommand underrepo brancheswithcreate <name> [--from <ref>]anddelete <name>, keeping the barerepo branchesinvocation on the list path. Three arg-parsing tests cover the list/create/delete dispatch. Closes #121.