Skip to content

bnema/ero

Repository files navigation

ero

A terminal UI for reviewing Git diffs file by file.

ero opens the current repository in a GitHub-style review flow, with syntax-highlighted diffs, file navigation, search, and expandable context.

Features

  • smart startup mode for local changes, staged changes, upstream commits, or branch diffs
  • explicit review modes for branch, working tree, staged, local, upstream, commit, and range diffs
  • per-file navigation with a floating file finder
  • reference search across the loaded review
  • expandable unchanged context around diff hunks
  • syntax-aware diff rendering
  • selection copy support
  • active review-provider sync with inline remote review threads
  • GitHub PR overview sheet with Markdown-rendered PR body, issue comments, and review summaries

Install

Download a binary from the GitHub releases page, or build from source:

go install ./cmd/ero

Usage

ero                  # choose a safe review scope automatically
ero branch           # current branch vs default branch
ero working          # unstaged and untracked changes
ero staged           # staged changes
ero local            # staged + unstaged + untracked changes
ero upstream [ref]   # changes against upstream, default @{upstream}
ero commit <rev>     # one commit
ero range <base> <head>

Useful flags:

ero --repo-path /path/to/repo
ero --context-lines 5

Plugins

Ero supports a general local subprocess plugin system, managed with ero plugin install, ero plugin list, ero plugin update, and ero plugin remove. The first shipped contribution type is review_provider, used by the maintained GitHub and pi-coding-agent plugins.

Ero discovers all provider contributions but activates one review provider at a time. The TUI supports provider switching, manual refresh, cache-first sync, and provider sync status. The GitHub plugin uses GitHub CLI-compatible authentication through go-gh and requires gh auth login. See docs/plugins.md for authoring details.

Development

make test
make fmt
make tidy

About

Reusable Git diff review TUI in Go.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors