1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-28 12:59:41 +01:00

sequencer: always allow tab after command name

The code that parses the todo list allows an unabbreviated command name
to be followed by a space or a tab, but if the command name is
abbreviated it only allows a space after it. Fix this inconsistency.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Phillip Wood 2019-06-27 07:12:44 -07:00 committed by Junio C Hamano
parent b697d92f56
commit d258dc16c1

View file

@ -2100,7 +2100,7 @@ static int parse_insn_line(struct repository *r, struct todo_item *item,
if (skip_prefix(bol, todo_command_info[i].str, &bol)) {
item->command = i;
break;
} else if ((bol + 1 == eol || bol[1] == ' ') &&
} else if ((bol + 1 == eol || bol[1] == ' ' || bol[1] == '\t') &&
*bol == todo_command_info[i].c) {
bol++;
item->command = i;