# git: Implement compare with branch action \(\#57886\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/83c52e38785efbed6c0b9013cae1866f72218921)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 83c52e38785efbed6c0b9013cae1866f72218921

Requested commit: 83c52e38785efbed6c0b9013cae1866f72218921

Commit: 83c52e38785efbed6c0b9013cae1866f72218921

Tree: 45e1b680a52bc7970981a81f2ebb2fd5f1d32cd3

Author: Alvaro Parker

Committer: GitHub

## Message

```
git: Implement compare with branch action (#57886)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #55880 

This improves the work on #56569 by allowing the user to choose the base
branch to compare with directly, instead of having to open the default
branch diff and only after, picking the new base branch.

Additionally, this changes the existing item finder to also match by
base (oid). This allows to have multiple branch diff open with different
base branches.

Demo: 



https://github.com/user-attachments/assets/8abdc08f-6181-4a74-a50b-e5f2b891663e



Release Notes:

- Added new `git: compare with branch` action to directly compare the
current branch with an arbitrary branch.
```

## Parents

- [c31ff67fa8f99dec16f7431698c8d143e6712e75](https://git.cafe/gitcafe/zed/commit/c31ff67fa8f99dec16f7431698c8d143e6712e75?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/83c52e38785efbed6c0b9013cae1866f72218921?format=markdown)
