# Refactor change sets to store index text in only one place \(\#24245\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7c1132ed882d936454f3c31074923e7c5b0a0ae9

Requested commit: 7c1132ed882d936454f3c31074923e7c5b0a0ae9

Commit: 7c1132ed882d936454f3c31074923e7c5b0a0ae9

Tree: 40c081bab2bb3f85572acc86954af88e1ee81a42

Author: Cole Miller

Committer: GitHub

## Message

```
Refactor change sets to store index text in only one place (#24245)

This is a pure refactor that somewhat reduces the amount of code needed
when handling diff base changes. There's also a small performance gain
from reparsing the staged text and computing a new diff in parallel when
we weren't previously.

Release Notes:

- N/A

Co-authored-by: Max <max@zed.dev>
```

## Parents

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

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