4 ms·
There is another downside to keep in mind. git commands accept the shortest unambiguous SHA-1 prefix instead of requiring you to specify the entire thing. Usu
by davvid 15y ago
There is another downside to keep in mind. git commands accept the shortest unambiguous SHA-1 prefix instead of requiring you to specify the entire thing. Usually the first 7 characters or so will do, even on fairly large projects.
Using this script too often may force you to specify more characters to get past the prefix being identical on too many commits.
- ajross 15y agoExactly! That's exactly what I was thinking reading this... it's a bad thing, not a feature. Why on earth would anyone do this to their repo willingly? This is visual aesthetics run amok, in the hands of someone who doesn't understand what the point of that hash value was. Ouch.
- vog 15y agoYou are missing the fact that this is a toy project and by no means meant seriously. Apart from that, of course you should use sensible prefixes like "0001", "0002", etc. and not use the same prefix for all commits.