Skip to content

Diff view #32922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 18, 2025
Merged

Diff view #32922

merged 11 commits into from
Jun 18, 2025

Conversation

ConradIrwin
Copy link
Member

@ConradIrwin ConradIrwin commented Jun 18, 2025

Closes #4523

Todo:

  • Open diffed files as regular buffers
  • Update diff when buffers change
  • Show diffed filenames in the tab title
  • Investigate why syntax highlighting isn't reliably handled for old text
  • remove unstage/restore buttons

Release Notes:

  • Adds zed --diff A B to show the diff between the two files

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jun 18, 2025
maxbrunsfeld and others added 8 commits June 18, 2025 11:18
* Allow passing multiple --diff flags and combining diffs with other
files * Support --wait in combination with --diff

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Agus Zubiaga <agus@zed.dev>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Agus Zubiaga <agus@zed.dev>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Agus Zubiaga <agus@zed.dev>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Agus Zubiaga <agus@zed.dev>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
@maxbrunsfeld maxbrunsfeld marked this pull request as ready for review June 18, 2025 14:00
@maxbrunsfeld maxbrunsfeld enabled auto-merge (squash) June 18, 2025 14:39
@maxbrunsfeld maxbrunsfeld merged commit 45b5b2e into main Jun 18, 2025
21 checks passed
@maxbrunsfeld maxbrunsfeld deleted the diff-view branch June 18, 2025 14:43
maxbrunsfeld added a commit that referenced this pull request Jun 18, 2025
Todo:

* [x] Open diffed files as regular buffers
* [x] Update diff when buffers change
* [x] Show diffed filenames in the tab title
* [x] Investigate why syntax highlighting isn't reliably handled for old
text
* [x] remove unstage/restore buttons

Release Notes:

- Adds `zed --diff A B` to show the diff between the two files

---------

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Agus Zubiaga <agus@zed.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show the diff between two arbitrary files
2 participants