summaryrefslogtreecommitdiff
path: root/t/t3903-stash.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-06-16 21:33:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-16 21:33:43 (GMT)
commit659d4c8fb21902660acd52f9e77170e82774b9ff (patch)
tree394f52a2b8ef5bdbc867cefe13c264e407798b87 /t/t3903-stash.sh
parent4be33f7222990c1c761cd1c497c0db88b3d376cc (diff)
parent5ba28313f29bcc2e8571c4b325646fecfbe238df (diff)
downloadgit-659d4c8fb21902660acd52f9e77170e82774b9ff.zip
git-659d4c8fb21902660acd52f9e77170e82774b9ff.tar.gz
git-659d4c8fb21902660acd52f9e77170e82774b9ff.tar.bz2
Merge branch 'jk/stash-options' into maint
Make "git stash something --help" error out, so that users can safely say "git stash drop --help". * jk/stash-options: stash: recognize "--help" for subcommands stash: complain about unknown flags
Diffstat (limited to 't/t3903-stash.sh')
-rwxr-xr-xt/t3903-stash.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh
index 0746eee..7396ca9 100755
--- a/t/t3903-stash.sh
+++ b/t/t3903-stash.sh
@@ -100,6 +100,10 @@ test_expect_success 'unstashing in a subdirectory' '
)
'
+test_expect_success 'stash drop complains of extra options' '
+ test_must_fail git stash drop --foo
+'
+
test_expect_success 'drop top stash' '
git reset --hard &&
git stash list > stashlist1 &&