# git: Refresh \`git: branch diff\` when project changes and command is rerun \(\#56552\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bb473f5ece354bc742e4b608959cc30d714a22a1

Requested commit: bb473f5ece354bc742e4b608959cc30d714a22a1

Commit: bb473f5ece354bc742e4b608959cc30d714a22a1

Tree: 8538addda841889f6a80447687d5ba27f72c7ddc

Author: Ben Kunkle

Committer: GitHub

## Message

```
git: Refresh `git: branch diff` when project changes and command is rerun (#56552)

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

Release Notes:

- Fixed an issue where re-running the `git: branch diff` after changing
the active project would not refresh the branch diff to show the branch
diff of the active project
```

## Parents

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

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