Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » File links and git branches(Managing file links in different git branches)
File links and git branches [message #1854805] Mon, 12 September 2022 11:47
Eclipse UserFriend
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.
Previous Topic:Access Modifiers in C and C++
Next Topic:Eclipse and GNU ARM OpenOCD Debug Issue
Goto Forum:
  


Current Time: Wed Apr 23 02:07:37 EDT 2025

Powered by FUDForum. Page generated in 0.06017 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top