# Fix shallow diffs causing a lot of computations \(\#63024\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 839ab7a9f71351bc3d64d37378364948db049f06

Requested commit: 839ab7a9f71351bc3d64d37378364948db049f06

Commit: 839ab7a9f71351bc3d64d37378364948db049f06

Tree: dd549eb5f118f9d749a143260c867e9fc2092469

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix shallow diffs causing a lot of computations (#63024)

For repositories with shallow mode enabled, before, Zed instantly loaded
diff changes which could be very large and CPU-demanding:


https://github.com/user-attachments/assets/5577730a-efef-424f-b749-501394a8b51f

Now, we show the following state instead of loading:

<img width="1728" height="1084" alt="after"
src="https://github.com/user-attachments/assets/03cc47fe-7074-4e8b-ba12-2fefa101377d"
/>

(the button allows to move on and do the load nonetheless)


Release Notes:

- Fixed shallow diffs causing a lot of computations

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

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

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