Sublime Forum

Any way to include commit hash in the display?

#1

Any way to include commit hash in the display without selecting a commit?

0 Likes

#2

It’s not clear what you mean, can you be more specific?

0 Likes

#3

I guess the qeustion is whether commit hash can be displayed in commit list - maybe as description of each item (next to author or date).

0 Likes

#4

G’day @heyya,

Thank you for reaching out!

It’s currently not possible to display the commit hash in the commit graph.

I’d love to learn more about your use-case here, so I can consider the UX of including the commit hash in the graph. When you have a chance, could you please share the situations where you would benefit from the commit hash being displayed here.

Cheers,
- Dylan from Sublime HQ

0 Likes

#5

The short/abbreviated commit hash in the commit list helps quickly visually locate a recent commit by its hash, without using the search function (which hides other commits) or reading commit messages. I do this sometimes :eyes:.

IMO, short hashes are easy to scan through because they’re of fixed/similar lengths (compared to variable-length commit messages), and even more so if they’re monospaced & aligned in the commit list. They’re also very different across adjacent commits, which lets you scan faster by reading the first few characters of the hash.

0 Likes

#6

perhaps the first 6 characters of the hash, like the right side column on GitHub

0 Likes