From: Felipe Balbi <me@felipebalbi.com>
To: git@vger.kernel.org
Subject: cherry picking several patches at once
Date: Thu, 21 Jan 2010 18:11:57 +0200 [thread overview]
Message-ID: <20100121161157.GA3628@gandalf> (raw)
Hi,
I wonder if it's possible to cherry several patches at once ?
Can't find anything on any docs, but something like:
$ git cherry-pick <commit_id_start>..<commit_id_end> -- \
/path/to/directory
I want to do that because I keep patches to the musb driver (on linux
kernel) based on top of linus' mainline tree and on top of internal
tree.
The internal tree is outdated (not following mainline), but the musb
driver is basically in sync, so cherry picking works, but it's a bit
painful when I have to pick patches from community and manually
cherry-pick to the other branch based on my internal tree.
If there's a way (besides git rebase --onto) to do that I would very
much like to know.
Another thing that would be nice to have, is to pass the HEAD to which
we want to cherry-pick, so we can cherry-pick to not-checked-out
branches. Something like:
$ git cherry-pick <commit_id> <my_branch_name>
and combining both, of course:
$ git cherry-pick <commit_id_start>..<commit_id_end> \
<my_branch_name> -- /path/to/directory
--
balbi
next reply other threads:[~2010-01-21 16:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-21 16:11 Felipe Balbi [this message]
2010-01-22 23:57 ` cherry picking several patches at once Felipe Contreras
2010-01-23 0:24 ` Marc Weber
2010-01-23 11:17 ` Sverre Rabbelier
2010-01-24 10:52 ` Felipe Balbi
2010-01-24 13:10 ` Felipe Contreras
2010-01-24 15:31 ` Marc Weber
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=20100121161157.GA3628@gandalf \
--to=me@felipebalbi.com \
--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).