git/list[1] front-page[2] threads[3] people[4] search[5] about
 

cherry picking several patches at once

From
FBFelipe Balbi <me@felipebalbi.com>
Date
Jan 21, 2010, 16:11 UTC
Message-ID
<20100121161157.GA3628@gandalf>
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: Felipe Contreras
Message 1 of 7 in “cherry picking several patches at once”
  1. Felipe BalbiJan 21, 2010
  2. Felipe ContrerasJan 22, 2010
  3. Marc WeberJan 23, 2010
  4. Sverre RabbelierJan 23, 2010
  5. Felipe BalbiJan 24, 2010
  6. Felipe ContrerasJan 24, 2010
  7. Marc WeberJan 24, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.