More entries for .gitignore

101 views
Skip to first unread message

sschaef

unread,
Jul 31, 2012, 4:52:15 PM7/31/12
to scala-...@googlegroups.com
I wonder why .gitignore is so empty.

I had to add the following entries to .git/info/exclude:


**/.classpath

org/
org.scala-ide.sdt.build/
org.scala-ide.build-toolchain/
classworlds/
junit/


Any reasons why there (or more specialized entries) are not yet included
to .gitignore?

Mirco Dotta

unread,
Aug 1, 2012, 7:25:48 AM8/1/12
to scala-...@googlegroups.com
> I wonder why .gitignore is so empty.
>
> I had to add the following entries to .git/info/exclude:
>
>
> **/.classpath

Good practice says that .classpath and .project should 1) not be under version control, and
2) be ignored in your `~/.gitignore_global`. We don't do that because there is no automatic
way of recreating the project's .classpath. And since we need to manually update them from
time to time, we can't add it to the git ignore list.

> org/

? There is no org/ folder...

> org.scala-ide.sdt.build/
> org.scala-ide.build-toolchain/

These are part of the project's definition, so it wouldn't be wise to ignore these folders.

> classworlds/
> junit/

These are folders generated by you (did you use the project's folder as Eclipse workspace?)

> Any reasons why there (or more specialized entries) are not yet included to .gitignore?

As far as I can tell, the current project's .gitignore should already cover all needs.

-- Mirco

sschaef

unread,
Aug 1, 2012, 8:28:06 AM8/1/12
to scala-...@googlegroups.com
You are right, I must have done something wrong. After cloning and
building scala-ide again the folders I mentioned haven't changed any more.

org, classworlds and junit are gone and org.scala-ide.sdt.build and
org.scala-ide.build-toolchain do not contain any special files any more.
I don't know how I created these files (scala-ide is a project in my
eclipse workspace).

The only file which I had to change is
org.scala-ide.sbt.full.library/.classpath because the libraries could
not be found by eclipse.

Mirco Dotta

unread,
Aug 1, 2012, 9:13:38 AM8/1/12
to scala-...@googlegroups.com

On Aug 1, 2012, at 2:28 PM, sschaef wrote:

> You are right, I must have done something wrong. After cloning and building scala-ide again the folders I mentioned haven't changed any more.
>
> org, classworlds and junit are gone and org.scala-ide.sdt.build and org.scala-ide.build-toolchain do not contain any special files any more. I don't know how I created these files (scala-ide is a project in my eclipse workspace).
>
> The only file which I had to change is org.scala-ide.sbt.full.library/.classpath because the libraries could not be found by eclipse.

I'm guessing because you are using Scala 2.10. The .classpath of that project is for 2.9, which should explain why you had to change it.
Reply all
Reply to author
Forward
0 new messages