Branch Diff ViewA tiny VS Code / Cursor extension that opens the full diff between the current branch and its base branch in a single multi-file diff view. InstallFrom a
|
| Mode | Shows |
|---|---|
committed |
merge-base(base, HEAD) vs HEAD -- committed diff only (three-dot, PR-style). |
working tree |
merge-base(base, HEAD) vs the current working tree -- committed + staged + unstaged + untracked. |
Commands
All are under the "Branch Diff View" category in the Command Palette; the two show*
commands also sit in the Source Control view title bar.
| Command / ID | Action |
|---|---|
branchDiffView.showDiff |
Open the committed multi-file diff. |
branchDiffView.showDiffWithWorkingTree |
Open the working-tree multi-file diff. |
branchDiffView.toggleMode / branchDiffView.openAll / branchDiffView.refresh |
Drive the Branch Diff View (title bar). |
Optionally bind keys in your keybindings.json:
{ "key": "cmd+alt+d", "command": "branchDiffView.showDiff" },
{ "key": "cmd+alt+shift+d", "command": "branchDiffView.showDiffWithWorkingTree" }
Configuration
| Setting | Default | Description |
|---|---|---|
branchDiffView.baseBranch |
"" |
Branch to diff against. Empty = auto-detect (main, then master, incl. origin/ variants). |
Development
The extension source is a single extension.js; there is nothing to compile.
The dev dependencies exist only to package and cut releases.
npm ci # install the release toolchain
npm run package # build a local branch-diff-view-<version>.vsix with vsce