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 17:54:20 -0400 Message-ID: <20090828215420.GA18336@coredump.intra.peff.net> References: <20090828194556.GA13302@coredump.intra.peff.net> 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 23:55:32 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 1Mh9Pv-00071B-Oa for gcvg-git-2@lo.gmane.org; Fri, 28 Aug 2009 23:55:32 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752657AbZH1VyW (ORCPT ); Fri, 28 Aug 2009 17:54:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751581AbZH1VyV (ORCPT ); Fri, 28 Aug 2009 17:54:21 -0400 Received: from peff.net ([208.65.91.99]:60254 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562AbZH1VyV (ORCPT ); Fri, 28 Aug 2009 17:54:21 -0400 Received: (qmail 8428 invoked by uid 107); 28 Aug 2009 21:54:32 -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 17:54:32 -0400 Received: by coredump.intra.peff.net (sSMTP sendmail emulation); Fri, 28 Aug 2009 17:54:20 -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:50:53PM -0500, Alydis wrote: > While I have your attention, however, I noticed that git am > will apply the list patches generated by format-patch. The > documentation said something about mbox/maildir directories, which I > actually am not that familiar with. Is it safe to say that git am > will read the path and apply patches in numerical order? Does > it allow skipping? It will apply the patches in the order given on the command line. When your shell expands the "patches/*" glob, it will do so in lexically sorted order. Meaning "0001" comes before "0002", etc, which is the reason that format-patch zero-pads the filenames. You can edit or delete the patches in your patch directory before applying, and they should apply the same (unless you create a patch that cannot actually be applied). -Peff