All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Script for applying a set of patches from a folder
       [not found] <3284AAA8-73B9-4C4C-95FD-29BC92AFE5A8@mac.com>
@ 2009-06-05 12:10 ` Felipe Balbi
  2009-06-05 13:49 ` Jean Pihet
  2009-06-05 14:38 ` Kevin Hilman
  2 siblings, 0 replies; 5+ messages in thread
From: Felipe Balbi @ 2009-06-05 12:10 UTC (permalink / raw)
  To: ext Elvis Dowson; +Cc: Linux OMAP Users

On Fri, Jun 05, 2009 at 12:55:41PM +0200, ext Elvis Dowson wrote:
> HI,
> 	Does anyone have a script that will allow me to apply all the patches  
> that are contained in a folder, using the git apply command?
> 
> I have hundreds of patches that I want to apply from the dss2 and pm  
> branches to the linux-omap-2.6 branch, locally, to bring it upto date,  
> to a known state before making specific patches for the overo platform.

if they are in mbox format you use git am /path/to/patches/*

-- 
balbi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Script for applying a set of patches from a folder
       [not found] <3284AAA8-73B9-4C4C-95FD-29BC92AFE5A8@mac.com>
  2009-06-05 12:10 ` Script for applying a set of patches from a folder Felipe Balbi
@ 2009-06-05 13:49 ` Jean Pihet
  2009-06-05 14:06   ` Curran, Dominic
  2009-06-05 14:38 ` Kevin Hilman
  2 siblings, 1 reply; 5+ messages in thread
From: Jean Pihet @ 2009-06-05 13:49 UTC (permalink / raw)
  To: Elvis Dowson; +Cc: Linux OMAP Users

On Friday 05 June 2009 12:55:41 Elvis Dowson wrote:
> HI,
> 	Does anyone have a script that will allow me to apply all the patches
> that are contained in a folder, using the git apply command?
You need to use git am for that, with the dir as parameter. git am will apply 
each patch from the dir.

>
> I have hundreds of patches that I want to apply from the dss2 and pm
> branches to the linux-omap-2.6 branch, locally, to bring it upto date,
> to a known state before making specific patches for the overo platform.
>
> Best regards,
Regards,
Jean
>
> Elvis
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Script for applying a set of patches from a folder
  2009-06-05 13:49 ` Jean Pihet
@ 2009-06-05 14:06   ` Curran, Dominic
  0 siblings, 0 replies; 5+ messages in thread
From: Curran, Dominic @ 2009-06-05 14:06 UTC (permalink / raw)
  To: Jean Pihet, Elvis Dowson; +Cc: Linux OMAP Users



 On Friday 05 June 2009 12:55:41 Elvis Dowson wrote:
> > HI,
> >     Does anyone have a script that will allow me to apply all the patches
> > that are contained in a folder, using the git apply command?
> You need to use git am for that, with the dir as parameter. git am will apply
> each patch from the dir.

If they are in a quilt series then you can use:
$ git quiltimport


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Script for applying a set of patches from a folder
       [not found] <3284AAA8-73B9-4C4C-95FD-29BC92AFE5A8@mac.com>
  2009-06-05 12:10 ` Script for applying a set of patches from a folder Felipe Balbi
  2009-06-05 13:49 ` Jean Pihet
@ 2009-06-05 14:38 ` Kevin Hilman
  2 siblings, 0 replies; 5+ messages in thread
From: Kevin Hilman @ 2009-06-05 14:38 UTC (permalink / raw)
  To: Elvis Dowson; +Cc: Linux OMAP Users

Elvis Dowson <elvis.dowson@mac.com> writes:

> 	Does anyone have a script that will allow me to apply all the
> patches  that are contained in a folder, using the git apply command?
>
> I have hundreds of patches that I want to apply from the dss2 and pm
> branches to the linux-omap-2.6 branch, locally, to bring it upto date,
> to a known state before making specific patches for the overo
> platform.

Not sure exactly what you're trying to do here, but since the PM
branch probably makes up most of those patches, why do you need to
apply them?  Can't you just checkout the pm branch and add the other
patches on top?  e.g.

Create a test branch for your work in progress which is rooted at the
pm branch:

$ git checkout -b wip/test pm

Apply your other patches (dss2, etc.)

$ git am <patches>

Kevin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Script for applying a set of patches from a folder
       [not found] <A3273B39-7050-4382-BFE7-A1416B45DA55@mac.com>
@ 2009-06-05 19:22 ` Gadiyar, Anand
  0 siblings, 0 replies; 5+ messages in thread
From: Gadiyar, Anand @ 2009-06-05 19:22 UTC (permalink / raw)
  To: Elvis Dowson, Linux OMAP Users

> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org 
> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Elvis Dowson
> Sent: Friday, June 05, 2009 9:51 PM
> To: Linux OMAP Users
> Subject: Re: Script for applying a set of patches from a folder
> 
> Hi Kevin,
> 		  I'm using OpenEmbedded, so I have to extract the patches first,  
> then apply them and tweak the generated patches manually by hand.  
> Sometimes, I will end up with some patches that require me to create a  
> temporary workarea, apply all the patches that lead up to a particular  
> change, and then manually apply the offending patch, and then extract  
> a diff from that modification, and then re-insert it back to the  
> OpenEmbedded work area.
> 
> So I just needed this solution, to quickly fast forward to the point  
> that I want to apply the patch. I'll try it out.
> 

How about quilt?

<http://savannah.nongnu.org/projects/quilt>

- Anand

> Best regards,
> 
> Elvis
> 
> 
> 
> On Jun 5, 2009, at 6:38 PM, Kevin Hilman wrote:
> 
> >>
> >
> > Not sure exactly what you're trying to do here, but since the PM
> > branch probably makes up most of those patches, why do you need to
> > apply them?  Can't you just checkout the pm branch and add the other
> > patches on top?  e.g.
> >
> > Create a test branch for your work in progress which is 
> rooted at the
> > pm branch:
> >
> > $ git checkout -b wip/test pm
> >
> > Apply your other patches (dss2, etc.)
> >
> > $ git am <patches>
> >
> > Kevin
> 
> --
> To unsubscribe from this list: send the line "unsubscribe 
> linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-06-05 19:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3284AAA8-73B9-4C4C-95FD-29BC92AFE5A8@mac.com>
2009-06-05 12:10 ` Script for applying a set of patches from a folder Felipe Balbi
2009-06-05 13:49 ` Jean Pihet
2009-06-05 14:06   ` Curran, Dominic
2009-06-05 14:38 ` Kevin Hilman
     [not found] <A3273B39-7050-4382-BFE7-A1416B45DA55@mac.com>
2009-06-05 19:22 ` Gadiyar, Anand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.