diff options
author | Stephen Boyd <bebarino@gmail.com> | 2009-06-17 18:07:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-18 11:54:57 -0700 |
commit | fcdd0e92d9d42b8fa4569d92ba1013bb0eedfcd8 (patch) | |
tree | b72713cc8564e9d178de231f77030e1aa5d48a62 /t/t3903-stash.sh | |
parent | 0e987a12fc1d481d81ad9c56f4714efb08667213 (diff) | |
download | git-fcdd0e92d9d42b8fa4569d92ba1013bb0eedfcd8.tar.gz |
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-x | t/t3903-stash.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh index 7484cbede6..7a3fb67957 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 |