Release v0.4.0 - New Features & Code Quality
New Features
-
clean command - Remove all worktrees for deleted branches
- Lists worktrees before removal for review
--dry-runflag to preview changes without removing--forceflag to skip confirmation prompt
-
JSON output format - Machine-readable output for scripting
--json(or-j) flag forlistcommand- Structured output with branch, path, display_name, is_current, and last_modified fields
Code Quality Improvements
- Refactored
selectFromListUnifiedfunction (27% size reduction: 291 → 212 lines) - Extracted
renderInstructionshelper to eliminate code duplication - Consolidated lock acquisition error handling with
acquireWithUserFeedbackhelper - Removed code smells: replaced
catch unreachablewithtry - Removed unused
execWithErrorfunction
Technical Details
- All 62 tests passing
- Zero memory leaks detected
- Improved maintainability and code organization
Installation
macOS (Universal - Intel & Apple Silicon)
curl -LO https://github.com/shhac/git-wt/releases/download/v0.4.0/git-wt-macos-universal.tar.gz
tar -xzf git-wt-macos-universal.tar.gz
chmod +x git-wt-macos-universal
mv git-wt-macos-universal ~/.local/bin/git-wtmacOS (Intel only)
curl -LO https://github.com/shhac/git-wt/releases/download/v0.4.0/git-wt-x86_64-macos.tar.gz
tar -xzf git-wt-x86_64-macos.tar.gz
chmod +x git-wt-x86_64-macos
mv git-wt-x86_64-macos ~/.local/bin/git-wtmacOS (Apple Silicon only)
curl -LO https://github.com/shhac/git-wt/releases/download/v0.4.0/git-wt-aarch64-macos.tar.gz
tar -xzf git-wt-aarch64-macos.tar.gz
chmod +x git-wt-aarch64-macos
mv git-wt-aarch64-macos ~/.local/bin/git-wtLinux (x86_64)
curl -LO https://github.com/shhac/git-wt/releases/download/v0.4.0/git-wt-x86_64-linux.tar.gz
tar -xzf git-wt-x86_64-linux.tar.gz
chmod +x git-wt-x86_64-linux
sudo mv git-wt-x86_64-linux /usr/local/bin/git-wtLinux (ARM64)
curl -LO https://github.com/shhac/git-wt/releases/download/v0.4.0/git-wt-aarch64-linux.tar.gz
tar -xzf git-wt-aarch64-linux.tar.gz
chmod +x git-wt-aarch64-linux
sudo mv git-wt-aarch64-linux /usr/local/bin/git-wtPlatform Support
| Platform | Architecture | Binary Size | Status |
|---|---|---|---|
| macOS | Universal (Intel + Apple Silicon) | 500 KB | ✅ Tested |
| macOS | Intel (x86_64) | 261 KB | ✅ Tested |
| macOS | Apple Silicon (ARM64) | 238 KB | ✅ Tested |
| Linux | x86_64 | 1.1 MB | ✅ Built |
| Linux | ARM64 | 1.1 MB | ✅ Built |