summaryrefslogtreecommitdiff
path: root/archive-tar.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2014-07-13 02:42:08 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-07-28 10:14:33 -0700
commit5de7f500c13c8158696a68d86da1030313ddaf69 (patch)
tree73eee5d136d2b00c623c3fceceffab85c9e9b47e /archive-tar.c
parentadd object_as_type helper for casting objects (diff)
downloadtgif-5de7f500c13c8158696a68d86da1030313ddaf69.tar.xz
alloc: factor out commit index
We keep a static counter to set the commit index on newly allocated objects. However, since we also need to set the index on any_objects which are converted to commits, let's make the counter available as a public function. While we're moving it, let's make sure the counter is allocated as an unsigned integer to match the index field in "struct commit". Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive-tar.c')
0 files changed, 0 insertions, 0 deletions