# git: Don't load shallow HEAD text of symlinks \(\#25058\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 76f501af713d51a329b54a389c54ebf39bfc4bf9

Requested commit: 76f501af713d51a329b54a389c54ebf39bfc4bf9

Commit: 76f501af713d51a329b54a389c54ebf39bfc4bf9

Tree: bb6ef1e8577f4df49f150bb9ab787d421fa8e930

Author: Cole Miller

Committer: GitHub

## Message

```
git: Don't load shallow HEAD text of symlinks (#25058)

For symlinks, return `None` from `load_committed_text` as we do from
`load_index_text` ever since #10037.

Release Notes:

- Fixed diff hunks appearing in unchanged symlinked files
```

## Parents

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

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