# Fix race condition in diff base initializaiton \(\#2513\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 54c04a66180bf37e76442850b2eef96884ecf56c

Requested commit: 54c04a66180bf37e76442850b2eef96884ecf56c

Commit: 54c04a66180bf37e76442850b2eef96884ecf56c

Tree: 291db53d8a443204be37008be5b74bc46d764399

Author: Mikayla Maki

Committer: GitHub

## Message

```
Fix race condition in diff base initializaiton (#2513)

fixes
https://linear.app/zed-industries/issue/Z-1657/diff-markers-in-gutter-do-not-show-up-until-after-first-save

Release Notes:

- Fixes a race condition on buffer initialization that would cause git
diffs to not load.
```

## Parents

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

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

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