Files
git/builtin
Linus Torvalds dce9648916 Make the default abbrev length configurable
The default of 7 comes from fairly early in git development, when
seven hex digits was a lot (it covers about 250+ million hash
values). Back then I thought that 65k revisions was a lot (it was what
we were about to hit in BK), and each revision tends to be about 5-10
new objects or so, so a million objects was a big number.

These days, the kernel isn't even the largest git project, and even
the kernel has about 220k revisions (_much_ bigger than the BK tree
ever was) and we are approaching two million objects. At that point,
seven hex digits is still unique for a lot of them, but when we're
talking about just two orders of magnitude difference between number
of objects and the hash size, there _will_ be collisions in truncated
hash values. It's no longer even close to unrealistic - it happens all
the time.

We should both increase the default abbrev that was unrealistically
small, _and_ add a way for people to set their own default per-project
in the git config file.

This is the first step to first make it configurable; the default of 7
is not raised yet.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-03-11 14:42:54 -08:00
..
2010-12-12 21:49:53 -08:00
2010-11-24 15:55:19 -08:00
2010-11-24 15:55:19 -08:00
2010-10-21 17:16:10 -07:00
2011-01-12 21:26:51 -08:00
2010-12-12 21:49:50 -08:00
2010-12-10 12:58:06 -08:00
2010-12-12 21:49:52 -08:00
2010-11-24 15:55:19 -08:00
2010-11-15 10:04:43 -08:00
2010-12-08 11:24:12 -08:00
2010-11-24 15:55:19 -08:00
2010-11-17 15:01:00 -08:00
2010-12-08 11:24:13 -08:00
2010-11-15 10:04:43 -08:00