quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Quilt-dev] splitting a patch/series


From: Tim Bird
Subject: Re: [Quilt-dev] splitting a patch/series
Date: Wed, 29 Oct 2008 10:22:29 -0700
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Randy Dunlap wrote:
> Hi,
> 
> Is there a good (or typical) way to split a patch into 2 patches
> (in a series)?
> 
> Given series:
> fix1.patch    # patches file: test1.c
> 
> I want parts of fix1.patch in a new patch (fix2.patch).
> test1.c is the only source file in these patches.
> 
> I'll need to edit parts of fix1 and fix2 concurrently...
> Well, that seems to be the easiest way to do this, but maybe
> that's not allowed.
> 
> How should I go about this?

I'm not sure what the best way to do this is, but I
use:
 * "quilt fork" - make a duplicate of the patch in the series file
 * "quilt pop" - pop the new patch off the series file
 * edit patches/series to include both patches
 * edit patches/fix1.patch to remove parts that I only want in fix2
 * edit patches/fix2.patch to remove parts that I only want in fix1
If the patch chunks for the different parts don't overlap, then
this is relatively easy.  You can just remove whole chunks
from each patch.  Otherwise, just do the best you can, and
when pushing, resolve conflicts in the fix2.patch
 * "quilt push" - to push fix1
 * "quilt push" - to push fix2
If there are conflicts remaining between stuff in fix1 and fix2,
resolve them and refresh.
 -- Tim

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]