|Will EGit support automatic stash when doing a checkout? [message #767564]
||Sun, 18 December 2011 10:38
I see that EGit 1.3 will support git stash:
(look at the second last slide)
Currently I'm working with SVN and there it's a bit messier doing
branching but once I've branched all my development there is completely
separated from any other branch. When I want to work on another branch I
just change directory.
This is not how it works with git where when I want to change branch I
have to do a git checkout. However, that leaves all the modified and
untracked files in the directory of the branch I switched to. This is
seldom the behavior I want.
With the git stash command I can clean the directory the way I want but
the stash command is not connected to a particular branch.
Will EGit 1.3 be able to stash automatically when doing a checkout to
another branch, and then do an automatic git stash apply with the
correct stash when changing back to the previous branch again?
|Re: Will EGit support automatic stash when doing a checkout? [message #768681 is a reply to message #768319]
||Tue, 20 December 2011 15:44
On 12/19/2011 11:45 PM, Robin Rosenberg wrote:|
> DeMarcus skrev 2011-12-19 23.01:
>> On 2011-12-19 17:22, Kevin Sawicki wrote:
>>> Yes, I believe that is one such scenario EGit will try to support,
>>> associating stashes with branches allowing you to switch branches and
>>> access your stashed work for that branch. And also prompt to stash or
>>> automatically stash when switching branches cannot be done due to
>>> conflicts in the working directory between branches.
>>> Only the JGit work has been started for this feature, once that is
>>> committed then the tooling in EGit will progress. I would recommend
>>> getting on the 1.3 nightlies once they are available and provide
>>> feedback/ideas as the feature evolves.
>> Ok, thanks!
>> Actually I have one more feature suggestion already now.
>> When checking out another branch it would be a great feature if it
>> could also automatically change the set of source files I currently
>> have opened in the editor. I.e. the
>> currently opened files are connected to which branch is current, so
>> when another branch is checked out then first all files are closed and
>> the files that were open last
>> time the other branch was checked out will be reopened in the editor.
>> The only way to get the same behavior today is to change the whole
>> workspace, but that doesn't work practically.
> This might interest you:
Yes, the post from Chris Beams 2011-03-18 was something close to what
I'm looking for. However, it would be nice to have EGit do the stash
when switching *branch* so I'm not forced to use Mylyn.
Also, with git 1.7.7 you can stash untracked files without staging them.
Using that we would have a very clean branch switching.
Powered by FUDForum
. Page generated in 0.02478 seconds