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