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.mdindex 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 referencediff --git a/.claude-plugin/skills/worktrunk/reference/switch.md b/.claude-plugin/skills/worktrunk/reference/switch.mdindex 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.mdindex 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 referencediff --git a/docs/content/switch.md b/docs/content/switch.mdindex 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.rsindex 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.rsindex 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.rsindex 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 branchdiff --git a/tests/snapshots/integration__integration_tests__help__help_config_state.snap b/tests/snapshots/integration__integration_tests__help__help_config_state.snapindex 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: warnSOURCE_DATE_EPOCH: "1735776000"@@ -54,7 +54,7 @@ Use [2mwt config show[0m to view file-based configuration.[32mKeys-- [1mdefault-branch[0m: The repository's default branch (main, master, etc.)+- [1mdefault-branch[0m: The repository's default branch ([2mmain[0m, [2mmaster[0m, etc.)- [1mprevious-branch[0m: Previous branch for [2mwt switch -- [1mci-status[0m: CI/PR status for a branch (passed, running, failed, conflicts, no-ci, error)- [1mmarker[0m: Custom status marker for a branch (shown in [2mwt list[0m)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.snapindex 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: warnSOURCE_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 [2msymbolic-ref HEAD- Checks [2mgit config init.defaultBranch-- Looks for common names: main, master, develop, trunk+- Looks for common names: [2mmain[0m, [2mmaster[0m, [2mdevelop[0m, [2mtrunkdiff --git a/tests/snapshots/integration__integration_tests__help__help_page_switch.snap b/tests/snapshots/integration__integration_tests__help__help_page_switch.snapindex 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: warnSOURCE_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 -`) |