A powerful VS Code extension that helps you visualize and compare git changes across branches, worktrees, and commits with a clean, organized tree view.
Features
✨ Flexible Comparison
Compare any two branches, tags, or commits
Support for git worktrees - view changes across multiple working directories
Compare working tree changes against any remote or local branch
🌳 Smart Tree View
Tree Mode: View files organized by directory structure
List Mode: View all files in a flat list
Collapsible worktree sections for multi-worktree repositories
Auto-refresh every second to stay up-to-date
🎨 Clean Interface
Color-coded status indicators (Modified, Added, Deleted)
Simple, uncluttered file display
Click any file to open side-by-side diff
Intuitive icons and visual feedback
⚡ Powerful Features
Two-stage comparison target selection
Includes untracked files in comparisons
Support for both origin/main and origin/master
Automatic git fetch to ensure latest remote state
Installation
Open VS Code
Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
Search for "Git Diff Viewer"
Click Install
Usage
Basic Usage
Open a git repository in VS Code
Look for the "Git Diff" icon in the Activity Bar (left sidebar)
View your changes organized by worktree and directory
Click any file to see the diff
Changing Comparison Target
Click the comparison icon in the view toolbar
Step 1: Select source (Working Tree, HEAD, or worktree HEAD)
Step 2: Select target (any branch, tag, or remote)
View changes between your selected source and target
Toggle View Mode
Click the tree/list icon to switch between:
Tree View: Files organized by folder structure
List View: All files in a flat list
Requirements
Git must be installed and accessible in PATH
VS Code 1.74.0 or higher
Known Issues
None at this time. Please report issues on GitHub.
Release Notes
0.6.0
Modularized codebase: Split into gitOperations, treeItems, and treeBuilder modules