Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Projects only on a branch are lost when switching between branches
Projects only on a branch are lost when switching between branches [message #687883] Thu, 23 June 2011 08:56 Go to next message
Eclipse UserFriend
I have 2 branches in my git repo: X and Y. A project P only exists on branch X. I check out branch X and import project P into the IDE. I then ask EGit to switch to branch Y. Project P, that is not in branch Y, is removed and not visible in the IDE. I then ask EGit to switch back to branch X. Project P is still missing from the IDE Sad I need to reimport the project.

This is very annoying since I need to reimport projects whenever I switch branches. Is this expected behavior or a bug?

[Updated on: Thu, 23 June 2011 08:57] by Moderator

Re: Projects only on a branch are lost when switching between branches [message #689833 is a reply to message #687883] Tue, 28 June 2011 09:17 Go to previous messageGo to next message
Eclipse UserFriend
There is an open bug for this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=337581. I just added some thoughts there (which I also pasted below). Please continue the discussion there.

I wonder how egit should know which projects it should import after branch switch. Should it scan the whole repo for .project files and automatically import all found projects? I think that's not feasible, it could have a severe performance impact and may lead to results which a user does not want.

A possible solution could be that egit remembers all the projects which were imported the last time the newly checked out branch was checked out before and tries to find and import the projects again.
Re: Projects only on a branch are lost when switching between branches [message #1064323 is a reply to message #689833] Tue, 18 June 2013 13:25 Go to previous message
Eclipse UserFriend
Hi,

I'm having the same problem. I wanted to follow up the bug status but it says "'337581.' is not a valid bug number.".

Do you know the current status of the bug or where it was moved?

thanks!
Previous Topic:Does EGit now usable?
Next Topic:EGit (JGit) incorrectly detects modifications if autocrlf is changed after repo creation
Goto Forum:
  


Current Time: Tue Jul 08 05:50:11 EDT 2025

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

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

Back to the top