]> git.ipfire.org Git - thirdparty/git.git/commit - git-stash.sh
stash: simplify parsing fixes
authorJon Seymour <jon.seymour@gmail.com>
Mon, 27 Sep 2010 15:32:45 +0000 (01:32 +1000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Sep 2010 20:21:24 +0000 (13:21 -0700)
commit2bea593bf0f1159e93dbca1008a18dea4c262e58
tree9dc698c4cfd96b3a02f08d593e3b8998d89900aa
parent92c1e717779a9aa3267cef232ce80ac93e3460fe
stash: simplify parsing fixes

This patch simplifies Brian's fix for the recent regression by:

* eliminating the extra loop
* eliminating use of git rev-parse for parsing flags
* making use of the for opt idiom for the retained loop
* eliminating the redundant -- case

The patch has been tested with the tests in current maint.

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh