Working set from .gitignore in Eclipse

How do I create a Project Explorer working set automatically from content .gitignore

and then sync with .gitignore

?

I am working on a C ++ AutoTools project which, as is usually the case for AutoTools projects, generates quite a few files at the build stage. I already have .gitignored. Now I am trying Eclipse on this project and found that I would have to carefully select the files in order to ignore them again.

+3


source to share


1 answer


You can not. This feature does not exist.


Working sets functionality was implemented long before GIT, and it was a method for removing clutter in large projects, and importantly, it was a method that was in the user interface domain.

In fact, A working documentation for extending setpoints shows that it is possible to create a self-updating working set, and eit codebase searches return no results.

As I said, this feature is not implemented.



However, you can create your own plugin that will do what you want. It's not very difficult and shouldn't take more than one or two days. Or just open the feature request in the Eclipse bugzilla.


As for your main problem, you can try using the derived resource mechanism . It was added to prevent the command providers (CVS / GIT) from managing the files that result from the build.

Just a warning - GIT will not allow you to ignore further changes to any resource already under its control .

+2


source







All Articles