From: Jeff King <peff@peff.net>
To: Alydis <alydis@august8.net>
Cc: git <git@vger.kernel.org>
Subject: Re: Generating patches/Cherry Picking for a large number of commits
Date: Fri, 28 Aug 2009 17:54:20 -0400 [thread overview]
Message-ID: <20090828215420.GA18336@coredump.intra.peff.net> (raw)
In-Reply-To: <ae09c2a40908281250r42275a3o96825b89e725bace@mail.gmail.com>
On Fri, Aug 28, 2009 at 02:50:53PM -0500, Alydis wrote:
> While I have your attention, however, I noticed that git am <path>
> 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
> <path> 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
next prev parent reply other threads:[~2009-08-28 21:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-28 19:26 Generating patches/Cherry Picking for a large number of commits Alydis
2009-08-28 19:45 ` Jeff King
2009-08-28 19:50 ` Alydis
2009-08-28 20:34 ` Jakub Narebski
2009-08-28 22:35 ` Junio C Hamano
2009-08-28 21:54 ` Jeff King [this message]
2009-08-28 22:31 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090828215420.GA18336@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=alydis@august8.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).