From: Jakub Narebski <jnareb@gmail.com>
To: geoffrey.russell@gmail.com
Cc: git@vger.kernel.org
Subject: Re: Tracking the untracked
Date: Thu, 07 May 2009 01:22:43 -0700 (PDT) [thread overview]
Message-ID: <m33abhnx01.fsf@localhost.localdomain> (raw)
In-Reply-To: <93c3eada0905070058g7f619a56jfb9b49f02bb92f9b@mail.gmail.com>
Geoff Russell <geoffrey.russell@gmail.com> writes:
> On 5/6/09, Thomas Rast <trast@student.ethz.ch> wrote:
> > Geoff Russell wrote:
> > > Bug or feature? I don't know.
> >
> >
> > Feature.
[...]
> Ok, its clearly a policy choice. But suppose I have an untracked
> file and I do "git some-command" then I don't expect git to touch what
> it doesn't know about. I.e., "git add x" shouldn't delete the untracked
> file y. That seems sensible. But now "git checkout branch" behaves
> quite differently in just deleting stuff that it doesn't own (i.e., is
> untracked).
>
> Anyway, I'll rethink.
First, did you consider just .gitignore'ing untracked files,
and if they are compilation products use cc-cache instead?
Second, the way git treats untracked files is simple: do not
lose information. If a file is tracked, or to be more exact
specific contents of a file is in repository, then deleting
it would not remove information.
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2009-05-07 8:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-06 1:19 Tracking the untracked Geoff Russell
2009-05-06 9:36 ` Johannes Schindelin
2009-05-06 13:22 ` Thomas Rast
2009-05-07 7:58 ` Geoff Russell
2009-05-07 8:22 ` Jakub Narebski [this message]
2009-05-07 9:16 ` Thomas Rast
2009-05-07 10:54 ` Geoff Russell
-- strict thread matches above, loose matches on Subject: below --
2009-05-31 23:10 Giuseppe Bilotta
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=m33abhnx01.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=geoffrey.russell@gmail.com \
--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.