From: Nguyen Thai Ngoc Duy <pclouds@gmail.com>
To: Daniele Segato <daniele.bilug@gmail.com>,
Junio C Hamano <gitster@pobox.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: ignored file can be deleted silently
Date: Thu, 5 May 2011 21:18:15 +0700 [thread overview]
Message-ID: <BANLkTi=C4pO83mT3pO0B_AMaK3RMOC4V8g@mail.gmail.com> (raw)
In-Reply-To: <BANLkTinEupQKfBofhH-qKD6gLGWyWRbGvw@mail.gmail.com>
On Thu, May 5, 2011 at 3:40 PM, Daniele Segato <daniele.bilug@gmail.com> wrote:
> I noticed that when i put a file in the git ignore If i switch to a
> branch where the file is present and versioned git delete my local
> ignored file replacing it with the content of the branch I switched
> this is done silently and the file is gone forever if I don't have a
> copy somewhere
This is on purpose. Commit f8a9d42 (read-tree: further loosen "working
file will be lost" check. - 2006-12-04) allowed ignored files to be
overwritten. Perhaps we can have a config to tighten the check again?
--
Duy
next prev parent reply other threads:[~2011-05-05 14:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-05 8:40 ignored file can be deleted silently Daniele Segato
2011-05-05 14:18 ` Nguyen Thai Ngoc Duy [this message]
2011-05-05 16:49 ` Junio C Hamano
2011-05-05 19:51 ` Daniele Segato
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='BANLkTi=C4pO83mT3pO0B_AMaK3RMOC4V8g@mail.gmail.com' \
--to=pclouds@gmail.com \
--cc=daniele.bilug@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).