diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-06-01 22:45:14 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-01 22:45:14 +0300 |
commit | f693bb0bb0d18d6150d6059dfad5018501a9713a (patch) | |
tree | 53c5daaee141a48f062343143bf2b5e3df870227 /t | |
parent | 324a9f41cbf96ad994efc3b20be239116eba0dae (diff) | |
parent | 5ba28313f29bcc2e8571c4b325646fecfbe238df (diff) |
Merge branch 'jk/stash-options'
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')
-rwxr-xr-x | t/t3903-stash.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh index 0746eeeff7..7396ca9911 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 && |