Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327996

Summary: Default .gitignore for the git mirrors
Product: Community Reporter: Lars Vogel <Lars.Vogel>
Component: GitAssignee: Eclipse Webmaster <webmaster>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Lars Vogel CLA 2010-10-17 15:02:12 EDT
Under http://dev.eclipse.org/git/index.html you provide mirrors for the Eclipse projects. 

Would it be possible to add to the projects a default .gitignore file which contains the "bin" folder?
Comment 1 Eclipse Webmaster CLA 2010-10-18 13:59:24 EDT
Isn't this something for each project to decide? Or am I mis-understanding how your proposing this be used?

-M.
Comment 2 Lars Vogel CLA 2010-10-18 14:03:42 EDT
Is their a way the project can set this up? I assumes all this stuff is auto-generated. "bin" is only binary content for Java projects.
Comment 3 Eclipse Webmaster CLA 2010-10-18 14:15:40 EDT
Ah that clears things up a bit.  Yes the 'mirrors' repos are auto-generated, so we(webmaster) would need to try and stuff this into the mirror scripts.

I'm still not sure what the problem is with the 'bin' folder.  

-M.
Comment 4 Lars Vogel CLA 2010-10-18 14:55:55 EDT
If you checkout the git repo and forget to set .gitignore yourself, then git will try to commit all the generated class files in the bin folder. Cleaning this up is really difficult. 

Therefore I think a reasonable setting would be to have "bin" excluded per default. I don't think this would cause issues for any (Java) Projekt.
Comment 5 Eclipse Webmaster CLA 2010-10-18 15:48:09 EDT
Well now I'm back to my first comment.  The 'mirrors' are read only(since they're generated from CVS).  Now if you are committing to one of the projects that uses git, it's something the project can 'tweak'(or I can do it for them).

-M.
Comment 6 Lars Vogel CLA 2010-10-18 16:19:12 EDT
Ah didn't know that. Thanks. Bug can be closed.