stash: allow pathspecs in the no verb form
commit9e140909f611fff720efc914b7186b8e4ab722cd
authorThomas Gummerer <t.gummerer@gmail.com>
Tue, 28 Feb 2017 20:33:40 +0000 (28 20:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Feb 2017 22:21:10 +0000 (28 14:21 -0800)
tree82d6ae0ad2a22e348cb3ceabb114fb066a7c32a4
parent1ada5020b38c520f665259f6d9b3955672b92761
stash: allow pathspecs in the no verb form

Now that stash_push is used in the no verb form of stash, allow
specifying the command line for this form as well.  Always use -- to
disambiguate pathspecs from other non-option arguments.

Also make git stash -p an alias for git stash push -p.  This allows
users to use git stash -p <pathspec>.

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