Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude-plugin/skills/worktrunk/reference/tips-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ wsc feature -- 'Fix GH #322' # Runs `claude 'Fix GH #322'`

## Eliminate cold starts

Use [`wt step copy-ignored`](https://worktrunk.dev/step/#wt-step-copy-ignored) in a `post-create` hook to copy gitignored files (caches, dependencies) between worktrees:
Use [`wt step copy-ignored`](https://worktrunk.dev/step/#wt-step-copy-ignored) in a `post-create` hook to copy gitignored files listed in `.worktreeinclude` (caches, dependencies) between worktrees:

```toml
[post-create]
copy = "wt step copy-ignored"
install = "npm ci"
```

Create a `.worktreeinclude` file listing what to copy (uses gitignore syntax):
`.worktreeinclude` uses gitignore syntax:

```gitignore
# .worktreeinclude
Expand Down
4 changes: 2 additions & 2 deletions docs/content/tips-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ wsc feature -- 'Fix GH #322' # Runs `claude 'Fix GH #322'`

## Eliminate cold starts

Use [`wt step copy-ignored`](@/step.md#wt-step-copy-ignored) in a `post-create` hook to copy gitignored files (caches, dependencies) between worktrees:
Use [`wt step copy-ignored`](@/step.md#wt-step-copy-ignored) in a `post-create` hook to copy gitignored files listed in `.worktreeinclude` (caches, dependencies) between worktrees:

```toml
[post-create]
copy = "wt step copy-ignored"
install = "npm ci"
```

Create a `.worktreeinclude` file listing what to copy (uses gitignore syntax):
`.worktreeinclude` uses gitignore syntax:

```gitignore
# .worktreeinclude
Expand Down