Reputation: 8802
I'm using Eclipse 3.7 (Indigo) with CDT and EGit 2.0.0. I want to commit build directories (Debug
and Release
) because they contain makefile
, so if I want to compile my project in a host without Eclipse, I can clone the repository, cd
to the Release
directory and call make all
.
My .gitignore
is this:
*.o
*.d
Debug/MyApplication
Release/MyApplication
If I call git status
from a console, it tells that Debug
and Release
directories are untracked, so I can call git add .
.
From Eclipse, this is impossible: it simply ignore Debug and Release directories.
So... how to force Eclipse to stage these directories? I don't want to call git from command line everytime makefile changes.
Upvotes: 4
Views: 869
Reputation: 31417
Update to EGit 2.1 with the following update site (or use the nightly update site):
http://download.eclipse.org/egit/updates
EGit used to ignore derived resources (e.g. Eclipse build output folders) before 2.1.
In 2.1, this was changed so that it is consistent with Git, see bug 359052. It now only ignores files that are explicitly excluded (e.g. by .gitignore
).
Upvotes: 2