]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
fast-import: introduce mem_pool type
authorJameson Miller <jamill@microsoft.com>
Wed, 11 Apr 2018 18:37:54 +0000 (18:37 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Apr 2018 02:26:41 +0000 (11:26 +0900)
commit96c47d1466d2d11e2028b79fdc0bcaf7a4bb7345
tree7bec23f067b900b23d7dc218dd8b04e7508f8936
parent7dc0656e2f1bddc07518273ccdb79a3d315f06a6
fast-import: introduce mem_pool type

Introduce the mem_pool type which encapsulates all the information necessary to
manage a pool of memory. This change moves the existing variables in
fast-import used to support the global memory pool to use this structure. It
also renames variables that are no longer used by memory pools to reflect their
more scoped usage.

These changes allow for the multiple instances of a memory pool to
exist and be reused outside of fast-import. In a future commit the
mem_pool type will be moved to its own file.

Signed-off-by: Jameson Miller <jamill@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c