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>
This commit is contained in:
parent
aa7e722dfe
commit
0719f30087
@ -546,10 +546,7 @@ clear)
|
|||||||
clear_stash "$@"
|
clear_stash "$@"
|
||||||
;;
|
;;
|
||||||
create)
|
create)
|
||||||
if test $# -gt 0 && test "$1" = create
|
shift
|
||||||
then
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
create_stash "$*" && echo "$w_commit"
|
create_stash "$*" && echo "$w_commit"
|
||||||
;;
|
;;
|
||||||
drop)
|
drop)
|
||||||
|
Loading…
Reference in New Issue
Block a user