Merge branch 'js/rebase-i-shortopt'
"git rebase -i" learned to take 'b' as the short form of 'break' option in the todo list. * js/rebase-i-shortopt: rebase -i: recognize short commands without arguments
This commit is contained in:
@ -1994,7 +1994,8 @@ static int parse_insn_line(struct todo_item *item, const char *bol, char *eol)
|
||||
if (skip_prefix(bol, todo_command_info[i].str, &bol)) {
|
||||
item->command = i;
|
||||
break;
|
||||
} else if (bol[1] == ' ' && *bol == todo_command_info[i].c) {
|
||||
} else if ((bol + 1 == eol || bol[1] == ' ') &&
|
||||
*bol == todo_command_info[i].c) {
|
||||
bol++;
|
||||
item->command = i;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user