diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-07-27 20:37:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-07-31 07:33:06 -0700 |
commit | ea41cfc4f54f884582dbda307287f12bb1fc15e9 (patch) | |
tree | 390b7e770faea618226d4841ecd127563e1192f6 /t/t3903-stash.sh | |
parent | 6517452d7a4269e9a34648a28b8931640299f458 (diff) | |
download | git-ea41cfc4f54f884582dbda307287f12bb1fc15e9.tar.gz git-ea41cfc4f54f884582dbda307287f12bb1fc15e9.tar.xz |
Make 'git stash -k' a short form for 'git stash save --keep-index'
To save me from the carpal tunnel syndrome, make 'git stash' accept
the short option '-k' instead of '--keep-index', and for even more
convenience, let's DWIM when this developer forgot to type the 'save'
command.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3903-stash.sh')
-rwxr-xr-x | t/t3903-stash.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh index 7a3fb6795..e16ad93d2 100755 --- a/t/t3903-stash.sh +++ b/t/t3903-stash.sh @@ -200,4 +200,12 @@ test_expect_success 'drop -q is quiet' ' test ! -s output.out ' +test_expect_success 'stash -k' ' + echo bar3 > file && + echo bar4 > file2 && + git add file2 && + git stash -k && + test bar,bar4 = $(cat file),$(cat file2) +' + test_done |