stash: ensure --no-keep-index and --patch can be used in any order
commit3a243f7024f21c2c2205cd861f3bb756b0ec43a0
authorDan McGee <dpmcgee@gmail.com>
Thu, 7 Apr 2011 17:04:20 +0000 (7 12:04 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Apr 2011 22:54:04 +0000 (7 15:54 -0700)
treecafd7dd35224d007d7b249c94ca439b61f6a46ae
parent21ec98a75d9cecaeb1493462da593343441661b6
stash: ensure --no-keep-index and --patch can be used in any order

Don't assume one comes after the other on the command line. Use a
three-state variable to track and check its value accordingly.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh
t/t3904-stash-patch.sh