git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: empty directories and git Question

From
Andreas Ericsson <ae@op5.se>
Date
Sep 16, 2010, 08:32 UTC
Message-ID
<4C91D631.9010108@op5.se>
In-Reply-To
<loom.20100916T095344-932@post.gmane.org>
On 09/16/2010 09:59 AM, Anton wrote:
Show 20 quoted lines
> 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.
Previous: AntonNext: Kevin Ballard
Message 2 of 4 in “empty directories and git Question”
  1. AntonSep 16, 2010
  2. Andreas EricssonSep 16, 2010
  3. Kevin BallardSep 16, 2010
  4. Jakub NarebskiSep 16, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.