Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add an option to change the abbreviated commit SHA length #608
Literally every other git interface uses 8 characters in the commit ID abbreviation. Gitlab, GitHub, BitB, Gogs, GitExt, GitKraken, you name it, they all use 8 character long commit ID abbreviations...
why does GitLens only have 7 characters? Some hippie bs?
It may not be too much of a bother to some people, but to me it certainly is, especially when I am trying to copy abbreviated commit IDs into a spreadsheet constantly, having most of them initially from other clients, and especially because I cannot change the length, even if I do it in git globally. It just really gets on my nerves!
Please add a feature to at least change the length of the abbreviated commit ID. :)
I am working on it right now. So far, I have found the location of the value that needs to be changed and have added an option in package.json. However, how do I link that option to the value?
 in package.json
Btw, I have never made or worked on a VScode extension before, but I have some JS and OOP experience from working with other software. So I might be really off with the way I'm doing this.
@Luxray5474 No worries at all, I'm happy to help you through it -- and really appreciate you tackling this!
So you are on the right path for sure.
And you are correct with adding that setting to the
And finally reference that new setting in (where you mentioned):
Let me know if you have any other questions!