[PATCH] stash show: fix breakage in 1.7.3
- From
Jon Seymour <jon.seymour@gmail.com>
- Date
- Sep 25, 2010, 02:54 UTC
- Message-ID
- <1285383273-28378-1-git-send-email-jon.seymour@gmail.com>
- In-Reply-To
- <robbat2-20100924T191752-102740530Z@orbis-terrarum.net>
The detached-stash series regressed support for
git stash show stash@{0}due to a faulty assumption that git rev-parse --no-revs stash@{0} would treat stash@{0} as a revision reference and thus not display it.
This patch restores the behaviour of git stash show so that only flag like options are assigned to the FLAGS variable and thus does not depend git rev-parse behaviour so strongly.
It has been tested with Brandon Casey's improved t3903 tests.
Signed-off-by: Jon Seymour <jon.seymour@gmail.com> --- Apologies for the breakage. Brandon: thanks for improving the tests.
git-stash.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-stash.sh b/git-stash.sh index 7ce818b..c2f1b2a 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -282,7 +282,7 @@ parse_flags_and_rev() --) : ;; - *) + -*) FLAGS="${FLAGS}${FLAGS:+ }$1" ;; esac
-- 1.7.2.12.g8788e.dirty