# Avoid allocating a \`Patch\` just to check if there are no edits · gitcafe/zed

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

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

Visibility: public

Requested revision: e668ff8bcd338cb649e0b8ee4a8c34f21cc7e791

Requested commit: e668ff8bcd338cb649e0b8ee4a8c34f21cc7e791

Commit: e668ff8bcd338cb649e0b8ee4a8c34f21cc7e791

Tree: 6a0c4e4eba2fa159bcc66b9edaf6385e2f0820e1

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Avoid allocating a `Patch` just to check if there are no edits

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

```

## Parents

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

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