How to make Eclipse CDT ignore files

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 repository in my project. I created a git repository to take a snapshot of some changes that I was not ready to commit. Everything was fine until I updated my files in Eclipse. There were two problems:

  • Eclipse found my .git folder and indexed all the files inside it.
  • Eclipse also decided to add the entire git file to the pending list.

If I create a new file in Eclipse, I would like to add it to Perforce, but if it happens to find the file, I don't want it to do anything with it. I would also like to give Eclipse a list of file types that are always ignored, as I did with my .gitignore file.

I am using the P4WSAD plugin, but I am sure the problem can occur anytime you have files that you want Eclipse not to see.

+2


a source to share


1 answer


Just add the file .p4ignore

to your project root and add whatever you need P4WSAD to ignore like

.git

      



See the document on P4WSAD for details .

This should take care of part of Perforce

your question. For a part Eclipse

see this SO question .

+2


a source







All Articles