make sure 'add_exec_commands' and 'transform_todo_ids' also understand
the abbreviated versions of the command-names.

Signed-off-by: Liam Beguin <liambeg...@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

Reply via email to