7 characters should be enough for most repos, and iirc git can deal with collisions already (so git co 1536dd9 in your example would bring a prompt).
How many commits is the repo you're running this on btw?
How many commits is the repo you're running this on btw?