[Insight-developers] Pushing to the same Gerrit patch number

David Doria daviddoria at gmail.com
Fri Dec 17 11:18:16 EST 2010


>
> If you have the Gerrit local hook on it will insert a Change-Id: line
> as the final line of your commit message. If you then edit that
> commit, amend, interactive rebase etc, and push again, this will show
> up as patch set 2, 3, and so on assuming you do not change the
> change-id line, or add lines after it.
>
> If you just make another commit, then it will show up as another
> commit with a unique change-id.
>
> Marcus
>

Is the "Gerrit local hook" enabled by running "SetupForDevelopment.sh"?
Assuming it was when you did the first commit, then do you still have to do
the commit,amend,rebase, etc? (or is all that stuff to "fix it" if you
didn't have it turned on?)

Should this:

git clone ...
./Utilities/SetupForDevelopment.sh
git checkout -b MyBranch
make some changes
git add files
git commit
git gerrit-push
make more changes
git add files
git commit
git gerrit-push

result in one Gerrit patch or two?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101217/302f57c6/attachment.htm>


More information about the Insight-developers mailing list