]> git.ipfire.org Git - thirdparty/git.git/commit
sequencer.c: split up sequencer_remove_state()
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 6 Feb 2023 19:08:07 +0000 (20:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Feb 2023 00:03:52 +0000 (16:03 -0800)
commit6a09c3a9a69fa2059383dd94294bbfd44b440d4b
treeb1ae4ef4d4fe46d688c03688d9438a2fe537d2d1
parent01fd5fb14b4f2a910679cf2ac672ff6b1d742f19
sequencer.c: split up sequencer_remove_state()

Split off the free()-ing in sequencer_remove_state() into a utility
function, which will be adjusted and called independent of the other
code in sequencer_remove_state() in a subsequent commit.

The only functional change here is changing the "int" to a "size_t",
which is the correct type, as "xopts_nr" is a "size_t".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c