$ show raghavpillai/branchlet
Branchlet is an interactive CLI tool for creating and managing Git worktrees. It provides both a Terminal User Interface (TUI) built with Ink/React and a scriptable command-line interface for automating worktree operations. The tool simplifies Git worktree management by offering features like intelligent branch handling, automatic file copying to new worktrees based on configurable patterns, post-creation command execution, and shell integration for quick directory switching. It supports project-specific and global configuration through JSON files and includes robust error handling with user-friendly messages.
The LLM identified 3 files worth highlighting for reuse:
Provides sophisticated shell integration capabilities including automatic detection, generation of shell completion scripts for Bash and Zsh, creation of wrapper functions for directory switching, and safe installation/removal from shell config files. Demonstrates non-obvious skill in handling shell-specific syntax, edge cases, and cross-shell compatibility with zero internal dependencies.
Implements robust file pattern matching with glob support and configurable ignore patterns. Handles recursive directory traversal, pattern expansion (e.g., .env*), and efficient filtering while respecting ignore rules. Features proper escaping, dotfile handling, and performance optimizations for large file sets. Zero internal dependencies make it highly reusable across projects.
Contains pure functions for semantic version comparison, validation, and parsing. Implements correct SemVer semantics including prerelease handling with zero external dependencies. Demonstrates attention to edge cases like version string normalization, component validation, and efficient comparison logic. Completely self-contained and suitable for extraction to any project needing version comparison.