git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Ericsson <ae@op5.se>
To: Anton <tmp009@allproducts.info>
Cc: git@vger.kernel.org
Subject: Re: empty directories and git Question
Date: Thu, 16 Sep 2010 10:32:49 +0200	[thread overview]
Message-ID: <4C91D631.9010108@op5.se> (raw)
In-Reply-To: <loom.20100916T095344-932@post.gmane.org>

On 09/16/2010 09:59 AM, Anton wrote:
> Hi!
> 
> I am using git for a very long time with TextMate and Ruby on Rails,
> now I am working with Eclipse and Android and I have a stupid problem
> (or I am stupid...). Can anybody help me?
> 
> I have directories which I do not want to track in git (like gen/* an bin/*).
> They can be ignored by adding them to the .gitignore - works well.
> 
> But when I clone the project Eclipse shouts about the missing directories.
> So I tried the following:
> 
> added a .ignoreme file to "bin" and "gen", ignored everything else.
> Works fine, now the directory and the two .ignoreme files are added,
> but Eclipse does not like to have any file in the bin directory
> (can't build until I remove it).
> 
> So it there no way to manage bin folders of any kind
> in git when working with IDEs?
> 

You can't have empty directories in git. Eclipse forcing you to have a
pre-created empty directory that it doesn't create itself if it doesn't
exist sounds mightily weird though. I'd guess there's some setting in
eclipse that tells it to automagically create or wipe the directory if
it needs to. It's not like it's a small project, so I can't imagine a
simple thing like that not being handled.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

  reply	other threads:[~2010-09-16  8:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-16  7:59 empty directories and git Question Anton
2010-09-16  8:32 ` Andreas Ericsson [this message]
2010-09-16 19:30   ` Kevin Ballard
2010-09-16 20:02     ` empty directories and git Jakub Narebski

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=4C91D631.9010108@op5.se \
    --to=ae@op5.se \
    --cc=git@vger.kernel.org \
    --cc=tmp009@allproducts.info \
    /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).