]> git.ipfire.org Git - thirdparty/git.git/commit
sequencer.c: factor out a function
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Thu, 23 Sep 2021 15:26:20 +0000 (15:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Sep 2021 15:56:27 +0000 (08:56 -0700)
commitdfa8bae5a20ead0737413fec5c7bb754fe538abe
tree2acb6bf0415e2f03e99a485dba1e1d1996b586dd
parent225bc32a989d7a22fa6addafd4ce7dcd04675dbf
sequencer.c: factor out a function

This code is heavily indented and obscures the high level logic within
the loop. Let's move it to its own function before modifying it in the
next commit. Note that there is a subtle change in behavior if the
todo list cannot be reread. Previously todo_list->current was
incremented before returning, now it returns immediately.

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