From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: Generating patches/Cherry Picking for a large number of commits Date: Fri, 28 Aug 2009 15:45:56 -0400 Message-ID: <20090828194556.GA13302@coredump.intra.peff.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: git To: Alydis X-From: git-owner@vger.kernel.org Fri Aug 28 21:46:12 2009 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mh7Ol-0004gW-Uc for gcvg-git-2@lo.gmane.org; Fri, 28 Aug 2009 21:46:12 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752938AbZH1Tp5 (ORCPT ); Fri, 28 Aug 2009 15:45:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752932AbZH1Tp5 (ORCPT ); Fri, 28 Aug 2009 15:45:57 -0400 Received: from peff.net ([208.65.91.99]:43362 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752928AbZH1Tp4 (ORCPT ); Fri, 28 Aug 2009 15:45:56 -0400 Received: (qmail 7663 invoked by uid 107); 28 Aug 2009 19:46:07 -0000 Received: from coredump.intra.peff.net (HELO coredump.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.40) with (AES128-SHA encrypted) SMTP; Fri, 28 Aug 2009 15:46:07 -0400 Received: by coredump.intra.peff.net (sSMTP sendmail emulation); Fri, 28 Aug 2009 15:45:56 -0400 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Fri, Aug 28, 2009 at 02:26:43PM -0500, Alydis wrote: > I've tried something along these lines: > > git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 > cd linux-2.6 > git checkout -b mybranch v2.6.21 > git format-patch -o patches v2.6.21..v2.6.30 arch/powerpc/boot > git am -3 patches/* > > But, to my dismay, format-patch here tears apart the commits and > applies ONLY the hunks that apply to the arch/powerpc/boot directory. > What I'd much rather do is obtain a list of commits that apply to > arch/powerpc/boot; but, then apply the entire patch. By default, format-patch (and log, gitk, etc) when given a path limiter will also limit the diff shown. You can override it with --full-diff. -Peff