Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sequencer: left-trim lines read from the script
[gitweb.git]
/
sequencer.c
diff --git
a/sequencer.c
b/sequencer.c
index 8646ca56fff59d456b4430c46cc7076a770d2238..d74fdce99b9b9b0fbcdd3a37f85a49148515dcac 100644
(file)
--- a/
sequencer.c
+++ b/
sequencer.c
@@
-874,6
+874,9
@@
static int parse_insn_line(struct todo_item *item, const char *bol, char *eol)
char *end_of_object_name;
int i, saved, status, padding;
+ /* left-trim */
+ bol += strspn(bol, " \t");
+
for (i = 0; i < ARRAY_SIZE(todo_command_strings); i++)
if (skip_prefix(bol, todo_command_strings[i], &bol)) {
item->command = i;