Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Format branch names in backticks

Maximilian Roosb33a45e85ac7
diff --git a/.claude-plugin/skills/worktrunk/reference/config.md b/.claude-plugin/skills/worktrunk/reference/config.md
index dc8a68be7..385925f6d 100644
--- a/.claude-plugin/skills/worktrunk/reference/config.md
+++ b/.claude-plugin/skills/worktrunk/reference/config.md
@@ -676,7 +676,7 @@ Use `wt config show` to view file-based configuration.
### Keys
-- **default-branch**: The repository's default branch (main, master, etc.)
+- **default-branch**: The repository's default branch (`main`, `master`, etc.)
- **previous-branch**: Previous branch for `wt switch -`
- **ci-status**: CI/PR status for a branch (passed, running, failed, conflicts, no-ci, error)
- **marker**: Custom status marker for a branch (shown in `wt list`)
@@ -769,7 +769,7 @@ The local inference fallback uses these heuristics in order:
- If only one local branch exists, uses it
- For bare repos or empty repos, checks `symbolic-ref HEAD`
- Checks `git config init.defaultBranch`
-- Looks for common names: main, master, develop, trunk
+- Looks for common names: `main`, `master`, `develop`, `trunk`
### Command reference
diff --git a/.claude-plugin/skills/worktrunk/reference/switch.md b/.claude-plugin/skills/worktrunk/reference/switch.md
index c9305e262..47f2df4ea 100644
--- a/.claude-plugin/skills/worktrunk/reference/switch.md
+++ b/.claude-plugin/skills/worktrunk/reference/switch.md
@@ -39,7 +39,7 @@ wt switch --create temp --no-verify # Skip hooks
| Shortcut | Meaning |
|----------|---------|
-| `^` | Default branch (main/master) |
+| `^` | Default branch (`main`/`master`) |
| `@` | Current branch/worktree |
| `-` | Previous worktree (like `cd -`) |
diff --git a/docs/content/config.md b/docs/content/config.md
index 31cd54b03..1444b9e7a 100644
--- a/docs/content/config.md
+++ b/docs/content/config.md
@@ -692,7 +692,7 @@ Use `wt config show` to view file-based configuration.
### Keys
-- **default-branch**: The repository's default branch (main, master, etc.)
+- **default-branch**: The repository's default branch (`main`, `master`, etc.)
- **previous-branch**: Previous branch for `wt switch -`
- **ci-status**: CI/PR status for a branch (passed, running, failed, conflicts, no-ci, error)
- **marker**: Custom status marker for a branch (shown in `wt list`)
@@ -787,7 +787,7 @@ The local inference fallback uses these heuristics in order:
- If only one local branch exists, uses it
- For bare repos or empty repos, checks `symbolic-ref HEAD`
- Checks `git config init.defaultBranch`
-- Looks for common names: main, master, develop, trunk
+- Looks for common names: `main`, `master`, `develop`, `trunk`
### Command reference
diff --git a/docs/content/switch.md b/docs/content/switch.md
index ca707a9b3..db7f1ffa4 100644
--- a/docs/content/switch.md
+++ b/docs/content/switch.md
@@ -54,7 +54,7 @@ wt switch --create temp --no-verify # Skip hooks
| Shortcut | Meaning |
|----------|---------|
-| `^` | Default branch (main/master) |
+| `^` | Default branch (`main`/`master`) |
| `@` | Current branch/worktree |
| `-` | Previous worktree (like `cd -`) |
diff --git a/src/cli/config.rs b/src/cli/config.rs
index 6809e131a..f4fbc5919 100644
--- a/src/cli/config.rs
+++ b/src/cli/config.rs
@@ -216,7 +216,7 @@ Use `wt config show` to view file-based configuration.
## Keys
-- **default-branch**: The repository's default branch (main, master, etc.)
+- **default-branch**: The repository's default branch (`main`, `master`, etc.)
- **previous-branch**: Previous branch for `wt switch -`
- **ci-status**: CI/PR status for a branch (passed, running, failed, conflicts, no-ci, error)
- **marker**: Custom status marker for a branch (shown in `wt list`)
@@ -296,7 +296,7 @@ The local inference fallback uses these heuristics in order:
- If only one local branch exists, uses it
- For bare repos or empty repos, checks `symbolic-ref HEAD`
- Checks `git config init.defaultBranch`
-- Looks for common names: main, master, develop, trunk"#
+- Looks for common names: `main`, `master`, `develop`, `trunk`"#
)]
DefaultBranch {
#[command(subcommand)]
diff --git a/src/cli/mod.rs b/src/cli/mod.rs
index 66c4fdc5c..3c2c3b2cb 100644
--- a/src/cli/mod.rs
+++ b/src/cli/mod.rs
@@ -265,7 +265,7 @@ wt switch --create temp --no-verify # Skip hooks
| Shortcut | Meaning |
|----------|---------|
-| `^` | Default branch (main/master) |
+| `^` | Default branch (`main`/`master`) |
| `@` | Current branch/worktree |
| `-` | Previous worktree (like `cd -`) |
diff --git a/src/cli/step.rs b/src/cli/step.rs
index f6461a9c8..8733b62fe 100644
--- a/src/cli/step.rs
+++ b/src/cli/step.rs
@@ -57,7 +57,7 @@ pub enum StepCommand {
/// Fast-forward target to current branch
///
- /// Updates the local target branch (e.g., main) to include current commits.
+ /// Updates the local target branch (e.g., `main`) to include current commits.
/// Equivalent to `git push . HEAD:main`.
Push {
/// Target branch
diff --git a/tests/snapshots/integration__integration_tests__help__help_config_state.snap b/tests/snapshots/integration__integration_tests__help__help_config_state.snap
index 8d7b3e489..4bea8735c 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_state.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_state.snap
@@ -8,7 +8,7 @@ info:
- "--help"
env:
CLICOLOR_FORCE: "1"
- COLUMNS: "150"
+ COLUMNS: "500"
GIT_EDITOR: ""
RUST_LOG: warn
SOURCE_DATE_EPOCH: "1735776000"
@@ -54,7 +54,7 @@ Use wt config show to view file-based configuration.
Keys
-- default-branch: The repository's default branch (main, master, etc.)
+- default-branch: The repository's default branch (main, master, etc.)
- previous-branch: Previous branch for wt switch -
- ci-status: CI/PR status for a branch (passed, running, failed, conflicts, no-ci, error)
- marker: Custom status marker for a branch (shown in wt list)
diff --git a/tests/snapshots/integration__integration_tests__help__help_config_state_default_branch.snap b/tests/snapshots/integration__integration_tests__help__help_config_state_default_branch.snap
index 911066730..11d4e96af 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_state_default_branch.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_state_default_branch.snap
@@ -9,7 +9,7 @@ info:
- "--help"
env:
CLICOLOR_FORCE: "1"
- COLUMNS: "150"
+ COLUMNS: "500"
GIT_EDITOR: ""
RUST_LOG: warn
SOURCE_DATE_EPOCH: "1735776000"
@@ -66,4 +66,4 @@ The local inference fallback uses these heuristics in order:
- If only one local branch exists, uses it
- For bare repos or empty repos, checks symbolic-ref HEAD
- Checks git config init.defaultBranch
-- Looks for common names: main, master, develop, trunk
+- Looks for common names: main, master, develop, trunk
diff --git a/tests/snapshots/integration__integration_tests__help__help_page_switch.snap b/tests/snapshots/integration__integration_tests__help__help_page_switch.snap
index 594e3a17d..4df27cbf7 100644
--- a/tests/snapshots/integration__integration_tests__help__help_page_switch.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_page_switch.snap
@@ -7,7 +7,7 @@ info:
- "--help-page"
env:
CLICOLOR_FORCE: "1"
- COLUMNS: "150"
+ COLUMNS: "500"
GIT_EDITOR: ""
RUST_LOG: warn
SOURCE_DATE_EPOCH: "1735776000"
@@ -66,7 +66,7 @@ wt switch --create temp --no-verify # Skip hooks
| Shortcut | Meaning |
|----------|---------|
-| `^` | Default branch (main/master) |
+| `^` | Default branch (`main`/`master`) |
| `@` | Current branch/worktree |
| `-` | Previous worktree (like `cd -`) |