]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
list-objects-filter-options: clean up use of ALLOC_GROW
authorMatthew DeVore <matvore@google.com>
Thu, 27 Jun 2019 22:54:13 +0000 (15:54 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Jun 2019 15:41:53 +0000 (08:41 -0700)
commit5a133e8a7f7c28c57f7a0a85e57692b8b781d896
tree4c044c67cdbaec4319a55cfcffc0db548e7c4cf7
parent489fc9ee718b7c8594f17b55f090ac5292c655e1
list-objects-filter-options: clean up use of ALLOC_GROW

Introduce a new macro ALLOC_GROW_BY which automatically zeros the added
array elements and takes care of updating the nr value. Use the macro in
code introduced earlier in this patchset.

Signed-off-by: Matthew DeVore <matvore@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
list-objects-filter-options.c