I have an Eclipse RCP application with many plugins (hence, many Eclipse projects) that are version-controlled in one Git repository. I cloned the repository to one directory and set up the Eclipse workspace in another directory, according to the recommendations for using EGit. The projects have been imported using File > Import > Git > Projects from Git
My problem is that development is taking place on multiple branches, and the set of plugins/Eclipse projects is different depending on the branch. When I switch to an older branch with less plugins, some of the workspace projects become stale.
I could create one development workspace for each branch, but then I would have to take care that the branch that is currently checked out is always matching the Eclipse workspace that is open.
Is there any best practice for this?