Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] How to get one gerrit change into local branch

On Tue, Jan 4, 2011 at 06:16, Thorsten Kamann
<thorsten.kamann@xxxxxxxxxxxxxx> wrote:
> I want to edit a change from gerrit on a second workstation. For this I have
> clone the egit repository. From this master I've created a local branch.
> How can I merge the gerrit change in this branch? Can this be done with
> egit?
> Gerrit-Change: http://egit.eclipse.org/r/#change,2155

This may be harder to do in EGit than it should be.  Setup a fetch
from Gerrit's URL, but in the fetch refspecs you need to copy
refs/changes/55/2155/7 into some local branch on your repository (e.g.
refs/remotes/gerrit/2155).  After that is fetched, do a reset hard to
that commit.

Gerrit has some of these actions as C Git command lines you can copy
and paste, on the start of those lines you can get the URL and the
refs/changes/... string for the given patch set you are interested in.
 Since these sorts of lines are so common in the Git world, it might
help if EGit had a "Pull" dialog that just accepted a "git pull URL
REF" syntax and parsed it all for you.  Sadly, I don't think we have
that yet.

-- 
Shawn.


Back to the top