# Increase short SHA length to 7 characters \(\#11492\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c77d2eb73fa0d64b7373213807a96dbc078238b9

Requested commit: c77d2eb73fa0d64b7373213807a96dbc078238b9

Commit: c77d2eb73fa0d64b7373213807a96dbc078238b9

Tree: a44f79a4453f2b25e81a1fb2592e070442e74c13

Author: Marshall Bowers

Committer: GitHub

## Message

```
Increase short SHA length to 7 characters (#11492)

This PR increases the length of a shortened Git SHA from 6 to 7
characters.

This matches what GitHub uses.

I also took the opportunity to factor out a common method for computing
a short SHA so that we have a single source of truth for the length that
we're using.

Release Notes:

- Increased the short commit SHA length used by git blame from 6 to 7
characters.
```

## Parents

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

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