[PATCH 4/4] git-rebase: don't ignore unexpected command line arguments
- From
Brandon Casey <drafnel@gmail.com>
- Date
- Sep 17, 2017, 22:28 UTC
- Message-ID
- <1505687297-31183-4-git-send-email-drafnel@gmail.com>
- In-Reply-To
- <1505687297-31183-1-git-send-email-drafnel@gmail.com>
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> --- git-rebase.sh | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/git-rebase.sh b/git-rebase.sh index ad8415e..6344e8d 100755 --- a/git-rebase.sh +++ b/git-rebase.sh @@ -350,6 +350,9 @@ do shift break ;; + *) + usage + ;; esac shift done
-- 2.2.0.rc3