]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: refactor how original todo list lines are accessed
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 25 Apr 2018 12:28:29 +0000 (14:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Apr 2018 03:28:42 +0000 (12:28 +0900)
commita01c2a5f59cc0f28daeab33355ae4a45490ce7e6
treec7e93a4a219aa3078de56372058ef7dc722c966f
parent2f6b1d13aa730901fe328fc2d88f208ea44d4f9e
sequencer: refactor how original todo list lines are accessed

Previously, we did a lot of arithmetic gymnastics to get at the line in
the todo list (as stored in todo_list.buf). This might have been fast,
but only in terms of execution speed, not in terms of developer time.

Let's refactor this to make it a lot easier to read, and hence to
reason about the correctness of the code. It is not performance-critical
code anyway.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c