Skip to content

Release v0.4.0 - New Features & Code Quality

Choose a tag to compare

@shhac shhac released this 31 Oct 20:47
· 155 commits to main since this release
b1fecda

New Features

  • clean command - Remove all worktrees for deleted branches

    • Lists worktrees before removal for review
    • --dry-run flag to preview changes without removing
    • --force flag to skip confirmation prompt
  • JSON output format - Machine-readable output for scripting

    • --json (or -j) flag for list command
    • Structured output with branch, path, display_name, is_current, and last_modified fields

Code Quality Improvements

  • Refactored selectFromListUnified function (27% size reduction: 291 → 212 lines)
  • Extracted renderInstructions helper to eliminate code duplication
  • Consolidated lock acquisition error handling with acquireWithUserFeedback helper
  • Removed code smells: replaced catch unreachable with try
  • Removed unused execWithError function

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-wt

macOS (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-wt

macOS (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-wt

Linux (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-wt

Linux (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-wt

Platform 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