]> git.ipfire.org Git - thirdparty/git.git/commit - shallow.c
shallow.c: stop abusing COMMIT_SLAB_SIZE for paint_info's memory pools
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Tue, 6 Dec 2016 12:53:35 +0000 (19:53 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Dec 2016 23:44:31 +0000 (15:44 -0800)
commit6bc3d8c5ec04cdfaa7dc14aed1993f3bb376d9ae
tree4da7c74be968ab485c59782780d7786f5f21ef9c
parent0afd307ab403404f7cf775fc5042f527e8289980
shallow.c: stop abusing COMMIT_SLAB_SIZE for paint_info's memory pools

We need to allocate a "big" block of memory in paint_alloc(). The exact
size does not really matter. But the pool size has no relation with
commit-slab. Stop using that macro here.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
shallow.c