summaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2019-06-27 14:12:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-27 17:31:00 (GMT)
commitd258dc16c1bf92c01135c38130869da7808ed739 (patch)
treee2cb17f8c44a5b789fcbca64407999030517511f /sequencer.c
parentb697d92f56511e804b8ba20ccbe7bdc85dc66810 (diff)
downloadgit-d258dc16c1bf92c01135c38130869da7808ed739.zip
git-d258dc16c1bf92c01135c38130869da7808ed739.tar.gz
git-d258dc16c1bf92c01135c38130869da7808ed739.tar.bz2
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>
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c
index f88a97f..919e315 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -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;