stash: use stash_push for no verb form
commit1ada5020b38c520f665259f6d9b3955672b92761
authorThomas Gummerer <t.gummerer@gmail.com>
Tue, 28 Feb 2017 20:33:39 +0000 (28 20:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Feb 2017 22:21:10 +0000 (28 14:21 -0800)
tree542cd628b219a09b528c10f14435ff071c8e6df8
parentdf6bba0937209d679a06addd26975593fef744f2
stash: use stash_push for no verb form

Now that we have stash_push, which accepts pathspec arguments, use
it instead of stash_save in git stash without any additional verbs.

Previously we allowed git stash -- -message, which is no longer allowed
after this patch.  Messages starting with a hyphen was allowed since
3c2eb80f, ("stash: simplify defaulting to "save" and reject unknown
options").  However it was never the intent to allow that, but rather it
was allowed accidentally.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-stash.txt
git-stash.sh
t/t3903-stash.sh