Skip to content

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

Updates README documentation for consistent formatting

Maximilian Roos4231501d843c
diff --git a/README.md b/README.md
index f1178bbc5..9f5d5cff8 100644
--- a/README.md
+++ b/README.md
@@ -416,6 +416,7 @@ Arguments are resolved using **path-first lookup**:
3. Otherwise, treat the argument as a branch name
**Example**: If `repo.foo/` exists but is on branch `bar`:
+
- `wt switch foo` switches to `repo.foo/` (the `bar` branch worktree)
- `wt switch bar` also works (falls back to branch lookup)
@@ -693,6 +694,7 @@ Arguments are resolved to worktrees using **path-first lookup**:
3. Otherwise, treat the argument as a branch name
**Example**: If `repo.foo/` exists but is on branch `bar`:
+
- `wt remove foo` removes `repo.foo/` and the `bar` branch
- `wt remove bar` also works (falls back to branch lookup)
@@ -860,7 +862,7 @@ Order: `+!? ✖⚠≡_ ↻⋈ ↑↓↕ ⇡⇣⇅ ⎇⌫⊠`
- `⌫` Prunable worktree (directory missing, can be pruned)
- `⊠` Locked worktree (protected from auto-removal)
-*Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).*
+Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).
## JSON Output
diff --git a/src/cli.rs b/src/cli.rs
index c9f88b97f..fc8b8279a 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -651,7 +651,7 @@ Order: `+!? ✖⚠≡_ ↻⋈ ↑↓↕ ⇡⇣⇅ ⎇⌫⊠`
- `⌫` Prunable worktree (directory missing, can be pruned)
- `⊠` Locked worktree (protected from auto-removal)
-*Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).*
+Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).
## JSON Output
@@ -743,6 +743,7 @@ Arguments are resolved using **path-first lookup**:
3. Otherwise, treat the argument as a branch name
**Example**: If `repo.foo/` exists but is on branch `bar`:
+
- `wt switch foo` switches to `repo.foo/` (the `bar` branch worktree)
- `wt switch bar` also works (falls back to branch lookup)
@@ -885,6 +886,7 @@ Arguments are resolved to worktrees using **path-first lookup**:
3. Otherwise, treat the argument as a branch name
**Example**: If `repo.foo/` exists but is on branch `bar`:
+
- `wt remove foo` removes `repo.foo/` and the `bar` branch
- `wt remove bar` also works (falls back to branch lookup)
diff --git a/tests/snapshots/integration__integration_tests__help__help_list_long.snap b/tests/snapshots/integration__integration_tests__help__help_list_long.snap
index 836a68b63..fc0cb1e53 100644
--- a/tests/snapshots/integration__integration_tests__help__help_list_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_list_long.snap
@@ -102,7 +102,7 @@ Order: +!? ✖⚠≡_ ↻⋈ ↑↓↕ ⇡⇣⇅ ⎇⌫⊠
- ⌫ Prunable worktree (directory missing, can be pruned)
- ⊠ Locked worktree (protected from auto-removal)
-*Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).*
+Rows are dimmed when there's no marginal contribution (≡ matches main OR _ no commits).
JSON Output
diff --git a/tests/snapshots/integration__integration_tests__help__help_remove_long.snap b/tests/snapshots/integration__integration_tests__help__help_remove_long.snap
index e6a796e2a..0739ad496 100644
--- a/tests/snapshots/integration__integration_tests__help__help_remove_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_remove_long.snap
@@ -71,6 +71,7 @@ Arguments are resolved to worktrees using path-first lookup:
3. Otherwise, treat the argument as a branch name
Example: If repo.foo/ exists but is on branch bar:
+
- wt remove foo removes repo.foo/ and the bar branch
- wt remove bar also works (falls back to branch lookup)
diff --git a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap b/tests/snapshots/integration__integration_tests__help__help_switch_long.snap
index 28715370b..cff8d333e 100644
--- a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_switch_long.snap
@@ -67,6 +67,7 @@ Arguments are resolved using path-first lookup:
3. Otherwise, treat the argument as a branch name
Example: If repo.foo/ exists but is on branch bar:
+
- wt switch foo switches to repo.foo/ (the bar branch worktree)
- wt switch bar also works (falls back to branch lookup)