]> git.ipfire.org Git - thirdparty/git.git/commit - commit-slab.h
commit-slab: provide a static initializer
authorJeff King <peff@peff.net>
Tue, 10 Jun 2014 21:42:51 +0000 (17:42 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jun 2014 19:08:17 +0000 (12:08 -0700)
commit80cdaba569600154d91819d2e252f6b7dd9cff73
tree73779fbdcd2c66ac0fde31efc93f772a127c7d1a
parentbc6b8fc1300ef79c4b4c3c2a79bb3c1e2e032963
commit-slab: provide a static initializer

Callers currently must use init_foo_slab() at runtime before
accessing a slab. For global slabs, it's much nicer if we
can initialize them in BSS, so that each user does not have
to add code to check-and-initialize.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-slab.h