aboutsummaryrefslogtreecommitdiff
path: root/t/t3903-stash.sh
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2009-06-17 18:07:37 -0700
committerJunio C Hamano <gitster@pobox.com>2009-06-18 11:54:57 -0700
commitfcdd0e92d9d42b8fa4569d92ba1013bb0eedfcd8 (patch)
treeb72713cc8564e9d178de231f77030e1aa5d48a62 /t/t3903-stash.sh
parent0e987a12fc1d481d81ad9c56f4714efb08667213 (diff)
downloadgit-fcdd0e92d9d42b8fa4569d92ba1013bb0eedfcd8.tar.gz
git-fcdd0e92d9d42b8fa4569d92ba1013bb0eedfcd8.tar.xz
stash: teach quiet option
Teach stash pop, apply, save, and drop to be quiet when told. By using the quiet option (-q), these actions will be silent unless errors are encountered. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3903-stash.sh')
-rwxr-xr-xt/t3903-stash.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh
index 7484cbede..7a3fb6795 100755
--- a/t/t3903-stash.sh
+++ b/t/t3903-stash.sh
@@ -177,4 +177,27 @@ test_expect_success 'stash branch' '
test 0 = $(git stash list | wc -l)
'
+test_expect_success 'apply -q is quiet' '
+ echo foo > file &&
+ git stash &&
+ git stash apply -q > output.out 2>&1 &&
+ test ! -s output.out
+'
+
+test_expect_success 'save -q is quiet' '
+ git stash save --quiet > output.out 2>&1 &&
+ test ! -s output.out
+'
+
+test_expect_success 'pop -q is quiet' '
+ git stash pop -q > output.out 2>&1 &&
+ test ! -s output.out
+'
+
+test_expect_success 'drop -q is quiet' '
+ git stash &&
+ git stash drop -q > output.out 2>&1 &&
+ test ! -s output.out
+'
+
test_done