author | Charles Bailey <charles@hashpling.org> | |
Sun, 18 Apr 2010 18:27:49 +0000 (19:27 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 20 Apr 2010 17:03:10 +0000 (10:03 -0700) | ||
commit | 2ba2fe292c13d6442456c1b8a1948bea27992953 | |
tree | 174c9c7758a181c44ea63bc9f22352dda6e645a7 | tree | snapshot |
parent | 7aa5d43cc6204efab0d2c2f4fbf46d2cfd350fec | commit | diff |
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>
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 | diff | blob | history |