diff options
author | Derrick Stolee <derrickstolee@github.com> | 2022-07-19 18:33:37 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-07-19 12:49:03 -0700 |
commit | d7ce9a220196b995117252bb236baf135c9b704f (patch) | |
tree | cf65ff67839eb026a4746126c536f2454fd35042 /rebase-interactive.c | |
parent | f57fd48d56864ed9a09d65cffe2c70b86ca7b652 (diff) | |
download | git-d7ce9a220196b995117252bb236baf135c9b704f.tar.gz |
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>
Diffstat (limited to 'rebase-interactive.c')
0 files changed, 0 insertions, 0 deletions