git-rebase: don't ignore unexpected command line arguments

Currently, git-rebase will silently ignore any unexpected command-line
switches and arguments (the command-line produced by git rev-parse).
This allowed the rev-parse bug, fixed in the preceding commits, to go
unnoticed.  Let's make sure that doesn't happen again.  We shouldn't be
ignoring unexpected arguments.  Let's not.

Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Brandon Casey 2017-09-17 15:28:17 -07:00 коммит произвёл Junio C Hamano
Родитель 33e75122f4
Коммит 697bc88581
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -348,6 +348,9 @@ do
shift
break
;;
*)
usage
;;
esac
shift
done