# Use Rope instead of String for buffer diff base \(\#11300\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b523ee6980c97bf6c1002610514bf8fd4e41b0dd

Requested commit: b523ee6980c97bf6c1002610514bf8fd4e41b0dd

Commit: b523ee6980c97bf6c1002610514bf8fd4e41b0dd

Tree: c1a9991991913b166f61411ef14ddee09c3b5961

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Use Rope instead of String for buffer diff base (#11300)

As an attempt to do things better when showing diff hunks, store diff
base as Rope, not String, to have cheaper clones when the diff base text
is reused, e.g. creating another buffer with the diff base text for hunk
diff expanding.

Release Notes:

- N/A
```

## Parents

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

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