Skip to content

Commit 0719f30

Browse files
artagnongitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent aa7e722 commit 0719f30

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

git-stash.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,10 +546,7 @@ clear)
546546
clear_stash "$@"
547547
;;
548548
create)
549-
if test $# -gt 0 && test "$1" = create
550-
then
551-
shift
552-
fi
549+
shift
553550
create_stash "$*" && echo "$w_commit"
554551
;;
555552
drop)

0 commit comments

Comments
 (0)