From: Charles Bailey <charles@hashpling.org>
To: git@vger.kernel.org
Subject: Re: [PATCH 1/2] stash bug: stash can lose data in a file removed from the index
Date: Mon, 12 Apr 2010 22:44:03 +0100 [thread overview]
Message-ID: <20100412214403.GA27958@hashpling.org> (raw)
In-Reply-To: <1270923241-14383-1-git-send-email-charles@hashpling.org>
On Sat, Apr 10, 2010 at 07:14:00PM +0100, Charles Bailey wrote:
> 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
I just wanted to give this issue a bit more visibility. To me it would
seem to be fairly important as it's a potential loss of user data with
no easy recovery.
If I'm wrong about it, perhaps someone can put me right.
Thanks,
Charles.
next prev parent reply other threads:[~2010-04-12 21:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-10 18:04 Strange case with stash Khaled al Habache
2010-04-10 18:14 ` [PATCH 1/2] stash bug: stash can lose data in a file removed from the index Charles Bailey
2010-04-12 21:44 ` Charles Bailey [this message]
2010-04-10 18:14 ` [PATCH 2/2] stash: Don't overwrite files that have gone " Charles Bailey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100412214403.GA27958@hashpling.org \
--to=charles@hashpling.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.