Skip to content

Commit 697bc88

Browse files
drafnelgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 33e7512 commit 697bc88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git-rebase.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ do
348348
shift
349349
break
350350
;;
351+
*)
352+
usage
353+
;;
351354
esac
352355
shift
353356
done

0 commit comments

Comments
 (0)