On Tue, Dec 9, 2014 at 2:41 PM, Junio C Hamano wrote:
> Jeff King writes:
>
>> On Tue, Dec 09, 2014 at 12:49:58PM -0500, Jeff King wrote:
>>
>>> Another option would be to use a static strbuf. Then we're only wasting
>>> heap, and even then only as much as we need (we'd still manually cap it
>>>
Jeff King writes:
> On Tue, Dec 09, 2014 at 12:49:58PM -0500, Jeff King wrote:
>
>> Another option would be to use a static strbuf. Then we're only wasting
>> heap, and even then only as much as we need (we'd still manually cap it
>> at LARGE_PACKET_MAX since that's what the protocol dictates). T
On Tue, Dec 09, 2014 at 08:58:26PM +0100, Johannes Sixt wrote:
> Am 09.12.2014 um 18:49 schrieb Jeff King:
> > +test_expect_success 'create repo with absurdly long refname' '
> > + ref240=$_z40/$_z40/$_z40/$_z40/$_z40/$_z40
> > + ref1440=$ref240/$ref240/$ref240/$ref240/$ref240/$ref240 &&
> > +
Am 09.12.2014 um 18:49 schrieb Jeff King:
> +test_expect_success 'create repo with absurdly long refname' '
> + ref240=$_z40/$_z40/$_z40/$_z40/$_z40/$_z40
> + ref1440=$ref240/$ref240/$ref240/$ref240/$ref240/$ref240 &&
> + git init long &&
> + (
> + cd long &&
> +
On Tue, Dec 09, 2014 at 12:49:58PM -0500, Jeff King wrote:
> Another option would be to use a static strbuf. Then we're only wasting
> heap, and even then only as much as we need (we'd still manually cap it
> at LARGE_PACKET_MAX since that's what the protocol dictates). This would
> also make pack
When we send out pkt-lines with refnames, we use a static
1000-byte buffer. This means that the maximum size of a ref
over the git protocol is around 950 bytes (the exact size
depends on the protocol line being written, but figure on a sha1
plus some boilerplate).
This is enough for any sane workf
6 matches
Mail list logo