Increase the number of characters in a truncated SHA, possibly dynamically
For very large projects like GitLab CE/EE it's now possible to see an ambiguous SHA at 8 characters: ``` ❯ git cherry-pick -m1 e25d6a48 error: short SHA1 e25d6a48 is ambiguous hint: The candidates are: hint: e25d6a48110 commit 2018-06-19 - Merge branch 'fix-group-settings' into 'master' hint: e25d6a48573 blob fatal: bad revision 'e25d6a48' ``` We should consider expanding this to 9. @DouweM wondered if we can do this dynamically: > I wonder if we can use the same heuristic Git itself uses to determine the minimum number of chars to shorten to. In gitlab-ce, I’m shown 11. In a much smaller project of my own, I’m shown 7.
issue