diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-06-16 14:33:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-16 14:33:43 -0700 |
commit | 659d4c8fb21902660acd52f9e77170e82774b9ff (patch) | |
tree | 394f52a2b8ef5bdbc867cefe13c264e407798b87 /t/t3903-stash.sh | |
parent | 4be33f7222990c1c761cd1c497c0db88b3d376cc (diff) | |
parent | 5ba28313f29bcc2e8571c4b325646fecfbe238df (diff) | |
download | git-659d4c8fb21902660acd52f9e77170e82774b9ff.tar.gz |
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-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 && |