You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: branch-name consistency audit — short names everywhere, like split
Audit of every command that accepts a branch name; the queue/<qname>/
prefix never has to be typed:
- create: in a namespaced queue (explicit name, or branches already
under queue/<name>/…) a short name creates queue/<qname>/<short>,
exactly like split's segments. Names containing '/' are used as-is;
plain-named queues stay plain, so no queue ever mixes conventions.
- create --base, track --parent: short names resolve via a unique
queue/*/<name> match (ambiguity is an error listing the candidates).
- checkout <branch>: reattaches by short name within the line.
- split: already compliant (the reference behavior).
require_queue_name now reports whether the name was explicit, which is
what decides namespacing for brand-new queues.
Copy file name to clipboardExpand all lines: src/lib.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ struct Cli {
34
34
enumCommand{
35
35
/// Create a new branch queued after the current one.
36
36
#[command(
37
-
long_about = "Creates `<name>` at the current branch's tip (or at `--base <branch>`'s tip) and records it as the next branch of the queue. Extending a queue inherits its name; starting a new one asks for a name (or takes `--queue`). The front PR of a queue targets its base branch — which is how queues can be built on release or bugfix branches, not just trunk. Make commits, then `git queue submit` opens the numbered PRs."
37
+
long_about = "Creates the next branch of the queue at the current branch's tip (or at `--base <branch>`'s tip). In a namespaced queue — one with an explicit name, or whose branches already live under queue/<name>/… — you give the short name and the branch is created as queue/<name>/<short>, exactly like split's segments; names containing `/` are used as-is, and plain-named queues stay plain. Extending a queue inherits its name; starting a new one asks (or takes `--queue`). The front PR targets the base branch, which is how queues can be built on release branches. Branch arguments elsewhere (`--base`, `track --parent`, `checkout`) accept the same short names."
0 commit comments