File links and git branches [message #1854805] |
Mon, 12 September 2022 11:47 |
Eclipse User |
|
|
|
I have a project loaded in eclipse with links to the source files. In git branch 'A' I have some set of files and all builds as expected. In branch 'B', I have added a new file fooB.cpp. If I checkout branch B and add that file to my project, all builds as expected.
The problem is when I now switch branches: If I now checkout branch 'A', fooB.cpp shows up as a file link in the project (with the icon indicating it's a missing file). If I remove the link, I can now build branch A again. But then if I go back to branch B, the file link fooB.cpp is again missing from my project.
Is there any way to correct this behavior? I would expect the list of files to be maintained in the .project or .cproject files but it appears they are in the workspace somewhere.
|
|
|
Powered by
FUDForum. Page generated in 0.06017 seconds