| Crates.io | git-review |
| lib.rs | git-review |
| version | 1.0.0 |
| created_at | 2025-10-30 12:06:30.110972+00 |
| updated_at | 2025-10-30 12:06:30.110972+00 |
| description | Terminal-based code review tool for git branches with GitHub-inspired diff UI |
| homepage | https://github.com/andrewleech/git-review |
| repository | https://github.com/andrewleech/git-review |
| max_upload_size | |
| id | 1908138 |
| size | 2,301,841 |
Terminal-based code review tool for git branches with GitHub-inspired diff UI.

< and > indicatorse to expand context, r to reset? for keyboard shortcutsgit clone https://github.com/andrewleech/git-review
cd git-review
cargo build --release
cargo install --path .
cargo install git-review
Navigate to a git repository and run:
git-review
Options:
-p, --path <PATH> Path to git repository (defaults to current directory)
-b, --base <BRANCH> Base branch to compare against (cannot be used with --range)
-r, --range <RANGE> Git commit range to review (cannot be used with --base)
Examples:
HEAD~5..HEAD - Review last 5 commits
origin/main - Compare current branch to origin/main
v1.0..v2.0 - Review commits between tags
-c, --context <LINES> Initial context lines for diffs [default: 8]
-h, --help Print help
-V, --version Print version
q - Quit application? - Show help dialog (all shortcuts listed)space - Toggle commit log pane visibilitys - Switch to side-by-side diff modei - Switch to inline diff modej/k or ↓/↑ - Scroll diff view verticallyh/l or ←/→ - Scroll horizontally (side-by-side mode only)n/p - Next/previous commitPgUp/PgDn - Previous/next file within commite - Expand context (show more surrounding lines)r - Reset context to defaultEsc - Close help dialogUse --range to review specific commit ranges instead of comparing against a base branch:
# Review last 5 commits
git-review --range HEAD~5..HEAD
# Review commits between two branches
git-review --range main..feature/new-ui
# Review commits after a specific tag (from tag to HEAD)
git-review --range v1.0
# Review commits between two tags
git-review --range v1.0..v2.0
# Review commits in another repository
git-review --path /path/to/repo --range origin/main
Configuration is stored at ~/.config/git-review/config.toml:
[display]
diff_mode = "side-by-side" # or "inline"
context_lines = 8 # Initial context per hunk
context_expand_increment = 8 # Lines added per expansion
horizontal_scroll_amount = 4 # Chars scrolled per h/l keypress
syntax_theme = "base16-ocean.dark"
[ui]
log_pane_width_ratio = 0.35 # % of terminal width (default: 35%)
show_line_numbers = true
See CLAUDE.md and PLAN.md for development documentation.
cargo build
cargo test
cargo run
cargo fmt
cargo clippy --all-targets --all-features -- -D warnings
Use the included release.sh script:
./release.sh patch # 0.1.0 -> 0.1.1
./release.sh minor # 0.1.0 -> 0.2.0
./release.sh major # 0.1.0 -> 1.0.0
Version: 0.1.0 (Early Development)
MIT License - see LICENSE for details.
Contributions welcome! Please open an issue or PR on GitHub.