提交 0719f300 编写于 作者: R Ramkumar Ramachandra 提交者: Junio C Hamano

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: NRamkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 aa7e722d
......@@ -546,10 +546,7 @@ clear)
clear_stash "$@"
;;
create)
if test $# -gt 0 && test "$1" = create
then
shift
fi
shift
create_stash "$*" && echo "$w_commit"
;;
drop)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册