sequencer: left-trim lines read from the script

Interactive rebase's scripts may be indented; we need to handle this case, too, now that we prepare the sequencer to process interactive rebases. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Oct 21, 2016 at 14:25 UTC 8f8550b3ece8742c75dc6a5296d1b82e52e09def
1 file changed +3
sequencer.c
+3
@@ -874,6 +874,9 @@ static int parse_insn_line(struct todo_item *item, const char *bol, char *eol)
874 char *end_of_object_name;
875 int i, saved, status, padding;
876
877 + /* left-trim */
878 + bol += strspn(bol, " \t");
879 +
880 for (i = 0; i < ARRAY_SIZE(todo_command_strings); i++)
881 if (skip_prefix(bol, todo_command_strings[i], &bol)) {
882 item->command = i;