[PATCH v3 1/6] rebase -i: add abbreviated command-names handling
- From
Liam Beguin <liambeguin@gmail.com>
- Date
- May 2, 2017, 04:00 UTC
- Message-ID
- <20170502040048.9065-2-liambeguin@gmail.com>
- In-Reply-To
- <20170502040048.9065-1-liambeguin@gmail.com>
make sure 'add_exec_commands' and 'transform_todo_ids' also understand the abbreviated versions of the command-names.
Signed-off-by: Liam Beguin <liambeguin@gmail.com> --- git-rebase--interactive.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index 2c9c0165b5ab..9b8a030ff045 100644 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -754,7 +754,7 @@ transform_todo_ids () { while read -r command rest do case "$command" in - "$comment_char"* | exec) + "$comment_char"* |x|exec) # Be careful for oddball commands like 'exec' # that do not have a SHA-1 at the beginning of $rest. ;; @@ -871,7 +871,7 @@ add_exec_commands () { while read -r insn rest do case $insn in - pick) + p|pick) test -n "$first" || printf "%s" "$cmd" ;;
-- 2.9.3