On Thursday, July 05, 2012 06:20:09 PM Marco Foi wrote: > Hi guys! > Here a silly question for you. > > I have my GIT working directory, containing my eu.udig.tools plug-in, let's > say in c:\code\ > This plugin is available in my workspace that is, let's say, in c:\ws\ > > I supposed that if I closed Eclipse, and then issued > "git branch tests" followed by "git checkout tests" > and the I restarted Eclipse, I would be working on the "test" branch so > that if I did some edits, > then closed Eclipse and issued a > "git branch master" > and then restarted Eclipse, I would have NOT found the edits performed in > the "test" branch. > > Well.. ...it seems that this is not true.. ..and my "master" gets poisoned > with my test code. > > The question is: should my workflow succeed BUT Eclipse retains a kind of > cache of it previous run which is "cast" over the "master" branch > ..or am I missing some very basic golden rule? > > How can I use the wonders of GIT (branching, testing, deleting) with > Eclipse? > > Marco
An example for you. I have a branch in the georeferencing2 branch but it is not present in the master branch. The following shows that georeferencing is not present in master $ git checkout master Switched to branch 'master' $ ls plugins/eu.udig.image.georeferencing ls: cannot access plugins/eu.udig.image.georeferencing: No such file or directory But switching to georeferencin2 branch the georeferencing plugin is available $ git checkout georeferencing2 Switched to branch 'georeferencing2' $ ls plugins/eu.udig.image.georeferencing build.properties icons META-INF nl plugin.xml src Probably you don't add / commit your test branch Aside, eclipse don't know git staff, as I comment I think it is necessary to maintain different workspace (one for branch). I mean eclipse ws1 -> b1 eclipse ws2 -> b2 Maybe, someone can recommend a better practice. cheers -- Mauricio Pazos _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel