On Tue, Nov 01, 2016 at 06:33:38PM -0700, Junio C Hamano wrote:
> Jeff King writes:
>
> > On Fri, Sep 30, 2016 at 05:19:37PM -0700, Junio C Hamano wrote:
> >
> >> Introduce a mechanism, where we estimate the number of objects in
> >> the repository upon the first request to abbreviate an object
Jeff King writes:
> On Fri, Sep 30, 2016 at 05:19:37PM -0700, Junio C Hamano wrote:
>
>> Introduce a mechanism, where we estimate the number of objects in
>> the repository upon the first request to abbreviate an object name
>> with the default setting and come up with a sane default for the
>> r
On Mon, Oct 03, 2016 at 06:37:18PM -0700, Junio C Hamano wrote:
> Jeff King writes:
>
> >> OK, as Linus's "count at the point of use" is already in 'next',
> >> could you make it incremental with a log message?
> >
> > Sure. I wasn't sure if you actually liked my direction or not, so I was
> > m
Jeff King writes:
>> OK, as Linus's "count at the point of use" is already in 'next',
>> could you make it incremental with a log message?
>
> Sure. I wasn't sure if you actually liked my direction or not, so I was
> mostly just showing off what the completed one would look like.
To be quite hon
On Mon, Oct 03, 2016 at 03:52:44PM -0700, Junio C Hamano wrote:
> Jeff King writes:
>
> > On Mon, Oct 03, 2016 at 03:34:03PM -0700, Linus Torvalds wrote:
> >
> >> On Mon, Oct 3, 2016 at 3:27 PM, Jeff King wrote:
> >> >
> >> > + if (len < 0) {
> >> > + unsigned long count = a
Jeff King writes:
> On Mon, Oct 03, 2016 at 03:34:03PM -0700, Linus Torvalds wrote:
>
>> On Mon, Oct 3, 2016 at 3:27 PM, Jeff King wrote:
>> >
>> > + if (len < 0) {
>> > + unsigned long count = approximate_object_count();
>> > + len = (msb(count) + 1) / 2;
>> >
On Mon, Oct 03, 2016 at 03:34:03PM -0700, Linus Torvalds wrote:
> On Mon, Oct 3, 2016 at 3:27 PM, Jeff King wrote:
> >
> > + if (len < 0) {
> > + unsigned long count = approximate_object_count();
> > + len = (msb(count) + 1) / 2;
> > + if (len < 0)
On Mon, Oct 3, 2016 at 3:27 PM, Jeff King wrote:
>
> + if (len < 0) {
> + unsigned long count = approximate_object_count();
> + len = (msb(count) + 1) / 2;
> + if (len < 0)
> + len = FALLBACK_DEFAULT_ABBREV;
> + }
that se
On Fri, Sep 30, 2016 at 05:19:37PM -0700, Junio C Hamano wrote:
> Introduce a mechanism, where we estimate the number of objects in
> the repository upon the first request to abbreviate an object name
> with the default setting and come up with a sane default for the
> repository. Based on the ex
From: Linus Torvalds
In fairly early days we somehow decided to abbreviate object names
down to 7-hexdigits, but as projects grow, it is becoming more and
more likely to see such a short object names made in earlier days
and recorded in the log messages no longer unique.
Currently the Linux kern
10 matches
Mail list logo