]> git.ipfire.org Git - thirdparty/git.git/commit - t/t3903-stash.sh
detached-stash: tests of git stash with stash-like arguments
authorJon Seymour <jon.seymour@gmail.com>
Sat, 21 Aug 2010 04:09:03 +0000 (14:09 +1000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Aug 2010 06:51:22 +0000 (23:51 -0700)
commitdaf7a0c00039ace8ec965316a0bf8354eb973795
tree635db83106965aa8ab2f48b7254c6884154ef9db
parenta9bf09e19d9ca35e67cd6c5a145fd0e778af82f0
detached-stash: tests of git stash with stash-like arguments

Adds new tests which check that:
* git stash branch handles a stash-like argument when there is a stash stack
* git stash branch handles a stash-like argument when there is not a stash stack
* git stash show handles a stash-like argument when there is a stash stack
* git stash show handles a stash-like argument when there is not a stash stack
* git stash drop fails early if the specified argument is not a stash reference
* git stash pop fails early if the specified argument is not a stash reference
* git stash * fails early if the reference supplied is bogus
* git stash fails early with stash@{n} where n >= length of stash log

Helped-by: Johannes Sixt
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3903-stash.sh