]> git.ipfire.org Git - thirdparty/git.git/commit - add-patch.c
add -p: use ALLOC_GROW_BY instead of ALLOW_GROW
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Mon, 17 Aug 2020 13:23:07 +0000 (13:23 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Aug 2020 18:41:50 +0000 (11:41 -0700)
commit2ebe436c5531319e820571d04024f7bcae383450
tree77c19fba80e167ea961db2f69e9b40cc8e66d629
parent47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc
add -p: use ALLOC_GROW_BY instead of ALLOW_GROW

This simplifies the code slightly, especially the third case where
hunk_nr was incremented a few lines before ALLOC_GROW().

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-patch.c