Branch Compare Panel — view files changed vs base branch #48185
Flamefork
started this conversation in
Feature Requests
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What are you proposing?
A panel that shows the list of files changed between the working tree and a user-selected base branch (or tag/commit), displayed as a tree view with collapsible folders.
Key features:
git merge-basefor accurate PR-style diffWhy does this matter?
When working on a feature branch, I need to see which files have changed compared to the base branch (e.g.,
main) before creating a PR — essentially a "PR preview" without leaving the editor.Current state in Zed:
git: branch diff— shows full inline diff vs default branch, but no navigable file listWhat's missing is a quick way to see and navigate the list of changed files relative to the base branch.
Are there any examples or context?
VS Code extension Git Tree Compare provides this functionality:
Possible approach
Zed already has building blocks:
BranchDiffincrates/project/src/git_store/branch_diff.rscomputesTreeDiffwith file listDiffBase::Merge { base_ref }exists for merge-base comparisonCould be implemented as a new panel or as a mode/toggle in the existing Git Panel.
Beta Was this translation helpful? Give feedback.
All reactions