stash: learn to parse -m/--message like commit does
commit5675473fcbd18fb320ca17cffc107506f09c7464
authorPhil Hord <phil.hord@gmail.com>
Wed, 22 Nov 2017 21:20:30 +0000 (22 13:20 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Nov 2017 05:47:44 +0000 (24 14:47 +0900)
treeb456661b1154e33dbab2aad67216432a95854503
parentfc849d8d6b90e5c1e0c37bc0d60dd92b2fe7347f
stash: learn to parse -m/--message like commit does

`git stash push -m foo` uses "foo" as the message for the stash. But
`git stash push -m"foo"` does not parse successfully.  Similarly
`git stash push --message="My stash message"` also fails.  The stash
documentation doesn't suggest this syntax should work, but gitcli
does and my fingers have learned this pattern long ago for `commit`.

Teach `git stash` to parse -mFoo and --message=Foo the same as `git
commit` would do.  Even though it's an internal function, add
similar support to create_stash() for consistency.

Signed-off-by: Phil Hord <phil.hord@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh
t/t3903-stash.sh