Interactive Git commit review with GitHub Copilot-style UX
A VSCode/Cursor extension that allows you to review any Git commit's changes interactively - accept changes you want to keep or reject changes to revert them to the original state.
✨ Features
🎯 Commit Selection
Quick Pick UI showing recent commits with hash, message, author, and time
Support for manual commit hash input
Session management with persistence
🎨 Visual Diff Highlighting
Change Type
Color
Description
➕ Added
🟢 Green
New lines added in the commit
➖ Deleted
🔴 Red
Lines removed in the commit
✏️ Modified
🟡 Yellow
Lines changed in the commit
🔘 Inline Actions
Each change shows CodeLens buttons:
✓ Accept - Keep the change (just removes highlighting)
Press Ctrl+Shift+P and run "Commit Diff Reviewer: Select Commit to Review"
Choose a commit from the list (or enter a hash manually)
Review each change:
Click ✓ Accept to keep the change
Click ✗ Reject to revert to original
Use Alt+[/] to navigate between changes
When done, run "End Review Session"
Commands
Command
Description
Commit Diff Reviewer: Select Commit to Review
Start a review session
Commit Diff Reviewer: Go to Next Change
Navigate to next change
Commit Diff Reviewer: Go to Previous Change
Navigate to previous change
Commit Diff Reviewer: Accept Current Change
Accept and keep current change
Commit Diff Reviewer: Reject Current Change
Reject and revert current change
Commit Diff Reviewer: Accept All Changes
Accept all remaining changes
Commit Diff Reviewer: Reject All Changes
Reject all remaining changes
Commit Diff Reviewer: End Review Session
End the current session
⚙️ Configuration
Setting
Default
Description
commitDiffReviewer.maxCommitsInList
20
Number of commits to show
commitDiffReviewer.highlightColors.added
rgba(46,160,67,0.25)
Added lines color
commitDiffReviewer.highlightColors.deleted
rgba(248,81,73,0.25)
Deleted lines color
commitDiffReviewer.highlightColors.modified
rgba(210,153,34,0.25)
Modified lines color
🔧 Development
# Clone the repository
git clone https://github.com/longlongyang/commit-diff-reviewer.git
cd commit-diff-reviewer
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes
npm run watch
# Launch Extension Development Host
# Press F5 in VS Code