# git: Fix incorrect diff transforms being computed for side-by-side diff LHS \(\#47515\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9d7b6596dccf208fb0ed0a250ddb7c933fad4958

Requested commit: 9d7b6596dccf208fb0ed0a250ddb7c933fad4958

Commit: 9d7b6596dccf208fb0ed0a250ddb7c933fad4958

Tree: 60ae211ff2fbf3b9062afa5c4dd3ce8e6c2474a6

Author: Cole Miller

Committer: GitHub

## Message

```
git: Fix incorrect diff transforms being computed for side-by-side diff LHS (#47515)

`compare_hunks` was emitting an incorrectly small range for
`base_text_byte_range` in some cases.

Release Notes:

- N/A
```

## Parents

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

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