sequencer: define array with enum values
commitd7ce9a220196b995117252bb236baf135c9b704f
authorDerrick Stolee <derrickstolee@github.com>
Tue, 19 Jul 2022 18:33:37 +0000 (19 18:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jul 2022 19:49:03 +0000 (19 12:49 -0700)
treecf65ff67839eb026a4746126c536f2454fd35042
parentf57fd48d56864ed9a09d65cffe2c70b86ca7b652
sequencer: define array with enum values

The todo_command_info array defines which strings match with which
todo_command enum values. The array is defined in the same order as the
enum values, but if one changed without the other, then we would have
unexpected results.

Make it easier to see changes to the enum and this array by using the
enum values as the indices of the array.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c