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

Re: User's mailing list? And multiple cherry pick

From
Stephan Beyer <s-beyer@gmx.net>
Date
Jun 4, 2008, 08:00 UTC
Message-ID
<20080604080017.GB7752@leksak.fem-net>
In-Reply-To
<18c1e6480806032355q2002fe0ej1f37dbd7dbd4802b@mail.gmail.com>
> for C in $(git log --reverse <commit1>..<commit2> --pretty=format:%H);
> do git-cherry-pick $C; done
> 
> Is there an easier syntax for doing this?

Put this into a script and you've got an easier syntax ;-) But note that <commit1> does not get cherry-picked then. Use <commit1>^..<commit2> (or $1^..$2).

Except if there's a conflict.
Well, though it is far from finished, you could fetch git-sequencer.sh[1]
 1. http://tinyurl.com/6xtdvl
chmod +x it and do

for C in $(git log --reverse <commit1>..<commit2> --pretty=format:%H); do echo pick $C ; done >temporaryfile /where/you/put/it/git-sequencer.sh temporaryfile

Hope I could help.
Regards,
  Stephan
-- 
Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F
Previous: Miklos VajnaNext: David
Message 21 of 22 in “User's mailing list? And multiple cherry pick”
  1. DavidJun 4, 2008
  2. Junio C HamanoJun 4, 2008
  3. DavidJun 4, 2008
  4. Jakub NarebskiJun 4, 2008
  5. Johan HerlandJun 4, 2008
  6. DavidJun 4, 2008
  7. Wincent ColaiutaJun 4, 2008
  8. DavidJun 4, 2008
  9. Wincent ColaiutaJun 4, 2008
  10. Jakub NarebskiJun 4, 2008
  11. Björn SteinbrinkJun 4, 2008
  12. Johan HerlandJun 4, 2008
  13. Jakub NarebskiJun 4, 2008
  14. DavidJun 4, 2008
  15. Jakub NarebskiJun 4, 2008
  16. DavidJun 4, 2008
  17. Jakub NarebskiJun 4, 2008
  18. Theodore TsoJun 4, 2008
  19. Karl HasselströmJun 4, 2008
  20. Miklos VajnaJun 4, 2008
  21. Stephan BeyerJun 4, 2008
  22. DavidJun 4, 2008

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.