[Insight-developers] Is it possible to rebase a patch on an older revision?

Brad King brad.king at kitware.com
Thu Sep 29 13:49:51 EDT 2011


On 9/29/2011 1:40 PM, Williams, Norman K wrote:
> So for me to even begin to test this patch:
> http://review.source.kitware.com/#change,2915
>
> I'm going to have to rebase it on an earlier revision of ITK4, since the
> changes having to do with the new Compatibility modules were checked into
> the itk.org master in a broken state.
>
> Is it possible to do a rebase to a revision prior to those changes? Or
> should I just do a diff, abandon my current patch, roll back to a
> pre-V3Compatibility revision, apply the patch, and push a new gerrit topic?

   git rebase --onto $oldversion $branch~1 $branch

-Brad


More information about the Insight-developers mailing list