stash: simplify option parser for create

The option parser for create unnecessarily checks "$1" inside a case statement that matches "$1" in the first place. Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ramkumar Ramachandra committed Jun 15, 2013 at 18:43 UTC 0719f300870cb573dcb526c7ab0cdffc5ee54324
1 file changed +1 -4
git-stash.sh
+1 -4
@@ -546,10 +546,7 @@ clear)
546 clear_stash "$@"
547 ;;
548 create)
549 - if test $# -gt 0 && test "$1" = create
550 - then
551 - shift
552 - fi
549 + shift
550 create_stash "$*" && echo "$w_commit"
551 ;;
552 drop)