]> git.ipfire.org Git - thirdparty/git.git/commit - pack.h
pack.h: define largest possible encoded object size
authorJeff King <peff@peff.net>
Fri, 24 Mar 2017 17:26:50 +0000 (13:26 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Mar 2017 19:34:07 +0000 (12:34 -0700)
commit2c5e2865cc3dfc053e71510415f479e165119d04
treeb718bd9758d66b6c8fc9b87f20d985bef6244df0
parent7202a6fa8773fdcf3f374625def3c15276250b67
pack.h: define largest possible encoded object size

Several callers use fixed buffers for storing the pack
object header, and they've picked 10 as a magic number. This
is reasonable, since it handles objects up to 2^67. But
let's give them a constant so it's clear that the number
isn't pulled out of thin air.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
pack.h