How do I get Eclipse CDT to ignore files
Posted
by brianegge
on Stack Overflow
See other posts from Stack Overflow
or by brianegge
Published on 2010-04-28T21:53:16Z
Indexed on
2010/04/28
21:57 UTC
Read the original article
Hit count: 388
I have a C++ project in Eclipse. The project uses Perforce and Eclipse has the Perforce plugin installed. Everything was fine, until I decided to create a git repo in my project. I created the git repo to snapshot some changes which I wasn't ready to commit. Everything was fine until I refreshed my files in Eclipse. Two problems have occurred:
- Eclipse found my .git folder, and indexed all of the files inside of it.
- Eclipse also decided to add all the git file to my pending change list.
If I create a new file within Eclipse, I'd like it to add it to Perforce, but if it happens to find a file, I don't want it to do anything with it. I'd also like to give Eclipse a list of file types to always ignore, just like I do with my .hgignore file.
© Stack Overflow or respective owner