# Use \`SHORT_SHA_LENGTH\` for all shortened commit SHAs \(\#58741\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f99fe5d8c2a0bc40375d79bfc09dfa583f421797

Requested commit: f99fe5d8c2a0bc40375d79bfc09dfa583f421797

Commit: f99fe5d8c2a0bc40375d79bfc09dfa583f421797

Tree: a819e5637b36e3405e9695fd5f228d2a2c511c29

Author: Albert Bogusz

Committer: GitHub

## Message

```
Use `SHORT_SHA_LENGTH` for all shortened commit SHAs (#58741)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Fixes hardcoded SHA lengths not using the `SHORT_SHA_LENGTH` constant.

Release Notes:

- Reduced short commit SHAs in blame and commit tooltips from 8 to 7 -
consistent with the graph and history views.
```

## Parents

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

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