Releases: riotbyte-com/worktree
Releases · riotbyte-com/worktree
Release list
v0.4.2
New Commands
-
worktree dotenv— Manage.envfiles in worktreesworktree dotenv set PORT=3000— Set environment variables (supportsKEY VALUEandKEY=VALUEsyntax)worktree dotenv get PORT— Read values from.envfiles--worktree <name>to target a specific worktree,--fileto use a custom env file path
-
worktree cp— Copy files and directories between worktreesworktree cp .env— Copy from main repo to current worktree--from/--toto specify source and destination worktrees--forceto overwrite existing files--skip-if-not-existsto silently skip missing source files--create-if-not-existsto create an empty file if source is missing--reverseto swap source and destination- Supports recursive directory copying
-
worktree path— Print the filesystem path of a worktree
New Features
--no-aiflag forinit— Generates template scripts without calling the Claude CLI (worktree init --defaults --no-ai). Useful in CI, testing, and environments without Claude access. Distinct from--no-scriptswhich skips script generation entirely.- Linux support — Terminal detection and launching now works on Linux (GNOME Terminal, Konsole, Kitty, Alacritty, Xfce Terminal)
Improvements
- Improved setup script templates — Default
setup.shnow includes commented examples forworktree cp(copying.env, config files) andworktree dotenv set(configuring ports and database URLs using allocated worktree ports) - Deduplicated command logic — Shared worktree resolution, removal, and listing logic extracted into
commands/common.rs, reducing code duplication acrossclose,cleanup,open,rename,list, andstatus - Fixed install script for improved reliability
Testing
- 46 integration tests across 12 test files covering every testable command (init, new, list, status, path, close, rename, dotenv, run, stop, cp, completions)
- Tests verify both CLI output and filesystem side-effects (created files, JSON content, port allocations, file permissions, git branches)
- Fully isolated
TestEnvhelper with fake$HOME, pre-seeded config, and disposable git repos
v0.4.1
v0.4.0
v0.3.2
What's Changed
- TREE-2: Added worktree name autocompletion by @nusje2000 in #7
- Fix rename command argument order by @nusje2000 in #8
Full Changelog: v0.3.1...v0.3.2
v0.3.1
What's Changed
- Close tmux session when closing worktree with display name support by @nusje2000 in #5
- Add status command to show worktree information by @nusje2000 in #6
Full Changelog: v0.3.0...v0.3.1
v0.3.0
v0.2.2
v0.2.1
v0.2.0
What's Changed
- Add tmux support and worktree open command by @nusje2000 in #3
Full Changelog: v0.1.0...v0.2.0
v0.1.0
What's Changed
- Rust rewrite by @nusje2000 in #1
New Contributors
- @nusje2000 made their first contribution in #1
Full Changelog: https://github.com/dbrekelmans/claude-worktree/commits/v0.1.0