# git: Add missing \`language_changed\` notification for branch diffs \(\#53757\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9264f7f88354c9da107aa78f4d9521041dc6b304

Requested commit: 9264f7f88354c9da107aa78f4d9521041dc6b304

Commit: 9264f7f88354c9da107aa78f4d9521041dc6b304

Tree: 0511c4ecb00495392df4292fb9ea5a3a0bc76f7e

Author: Cole Miller

Committer: GitHub

## Message

```
git: Add missing `language_changed` notification for branch diffs (#53757)

We need to reparse the base text using the same language as the main
buffer, whenever the main buffer's language changed. We already do this
for the uncommitted diff, but it was missing for the branch (OID-based)
diffs. (We don't need it for the unstaged diff because we don't
currently show you that base text anywhere in the UI, so its language is
immaterial.)

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)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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