From: Jeff King <peff@peff.net>
To: tfogal@sci.utah.edu
Cc: git@vger.kernel.org
Subject: Re: format-patch: numbered patches from a patch list?
Date: Tue, 21 Jul 2009 22:44:45 -0400 [thread overview]
Message-ID: <20090722024445.GA31254@coredump.intra.peff.net> (raw)
In-Reply-To: <auto-000020035874@sci.utah.edu>
On Tue, Jul 21, 2009 at 08:25:52PM -0600, tom fogal wrote:
> I have a need to generate a numbered sequence of patches from a sparse
> sprinkling of patches on a branch. Is there a way to accomplish this?
>
> Basically I want to say, `for the patches at the heads of these sha1s,
> give me a numbered sequence.' Currently I take the list of shas that I
> want, throw them in a file, and loop over each entry:
>
> for sha in $(cat patches) ; do git format-patch -o a/ ${sha}^..${sha} ; done
>
> This is undesirable because each patch is the first patch in a series,
> e.g. "0001-...". A desirable interface would be specifying multiple
> disconnected ranges via some separator, say ",".
Try
git format-patch --no-walk $(cat patches)
-Peff
next prev parent reply other threads:[~2009-07-22 2:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-22 2:25 format-patch: numbered patches from a patch list? tom fogal
2009-07-22 2:43 ` Junio C Hamano
2009-07-22 2:44 ` Jeff King [this message]
2009-07-22 2:47 ` tom fogal
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=20090722024445.GA31254@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=tfogal@sci.utah.edu \
/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).