Hasty Briefsbeta

Bilingual

Show HN: Git-Add–Interactive with Enhancements

a year ago
  • #Git
  • #Go
  • #Interactive Add
  • Go port of Git's interactive add functionality with enhancements.
  • Interactive staging and patch mode with commands like y/n/s/e/q/a/d.
  • Hunk operations: split, edit, navigate between hunks.
  • Multiple patch modes: stage, reset, checkout, stash, worktree operations.
  • Git integration with full color configuration and repository support.
  • Terminal UI with color-coded interface and keyboard shortcuts.
  • Filter hunks across files using regex patterns.
  • Automatically split hunks to maximum granularity.
  • Accept all hunks across files after filtering and splitting.
  • Local search within current file without affecting global filter.
  • Status display shows filter and auto-split indicators.
  • Cross-file filtering persists across all files in the session.
  • Build and install instructions to replace Perl script with Go implementation.
  • Commands to revert back to the original Perl implementation.
  • Direct usage and patch mode commands explained.
  • Codebase organization and main packages overview.
  • Test suite and conventions followed.
  • Comprehensive unit tests, Git integration, error handling.