# git: Allow choosing branch diff target in branch diff view \(\#56569\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 41c710b0a22701c854cb0a0afcc79eee0eb046d7

Requested commit: 41c710b0a22701c854cb0a0afcc79eee0eb046d7

Commit: 41c710b0a22701c854cb0a0afcc79eee0eb046d7

Tree: 579a89560092b50312557774bfe710012b8643cf

Author: Anthony Eid

Committer: GitHub

## Message

```
git: Allow choosing branch diff target in branch diff view (#56569)

### Summary

Added a branch diff base branch picker that shows the selected diff base
and prioritizes branches on the active branch’s remote. This also
generalizes the branch picker’s checkout vs. select only behavior so its
UI/search/rendering can be reused by a future git graph picker, and
makes branch diff drop stale in progress base update tasks when the base
or repository changes for faster response.

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  #54050

Release Notes:

- git: Allow choosing branch diff base in branch diff view

---------

Co-authored-by: Remco Smits <djsmits12@gmail.com>
```

## Parents

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

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