stash tests: stash can lose data in a file removed from the index
commit2ba2fe292c13d6442456c1b8a1948bea27992953
authorCharles Bailey <charles@hashpling.org>
Sun, 18 Apr 2010 18:27:49 +0000 (18 19:27 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Apr 2010 17:03:10 +0000 (20 10:03 -0700)
tree174c9c7758a181c44ea63bc9f22352dda6e645a7
parent7aa5d43cc6204efab0d2c2f4fbf46d2cfd350fec
stash tests: stash can lose data in a file removed from the index

If a file is removed from the index and then modified in the working
tree then stash will discard the working tree file with no way to
recover the changes.

This can might be done in one of a number of ways.

git rm file
vi file              # edit a new version
git stash

or with git mv

git mv file newfile
vi file              # make a new file with the old name
git stash

Signed-off-by: Charles Bailey <charles@hashpling.org>
t/t3903-stash.sh