Re: [PATCH] find_unique_abbrev(): honor caller-supplied "len" better
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Mar 19, 2011, 01:22 UTC
- Message-ID
- <AANLkTimH6ZKkTZ0MiJWzHpZywSy6Hk3caLQ5S+rE0uqg@mail.gmail.com>
- In-Reply-To
- <7vvczpff89.fsf@alter.siamese.dyndns.org>
On Fri, Mar 11, 2011 at 5:45 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
> +core.abbrevLength:: > + Set the length object names are abbreviated to. If unspecified, > + many commands abbreviate to 7 hexdigits, which may not be enough > + for abbreviated object names to stay unique for sufficiently long > + time. > +
Isn't this the minimum length though? i.e. a longer length is used as needed for uniqueness. If so, at least the description is misleading, and I'd argue the option name too. Perhaps core.abbrevMinLength?
j.