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>
Brandon Casey committed
Sep 17, 2017 at 15:28 UTC
697bc8858114ddda705be6f6eb3f997b64efa659
1 file changed
+3
git-rebase.sh
+3
@@ -348,6 +348,9 @@ do
348
shift
349
break
350
;;
351
+ *)
352
+ usage
353
+ ;;
354
esac
355
shift
356
done