Peter Krefting <[email protected]> writes:
> I was thinking about using git cherry-pick with a list of commits,
> rebase is better at helping with conflicts and such.
Because the three-way merge done by rebase is exactly the same as
cherry-pick, I do not think I understand the reasoning behind this
statement at all. After the command gives you control back asking
for your help to resolve conflicted merge, the sequencing "rebase"
gives is certainly better than a hand-rolled loop:
git rev-list --reverse ..... |
while read commit
do
git cherry-pick "$commit" || break
done
though.
Using "git cherry-pick $(git rev-list --reverse .....)" ought to
work. It may misbehave only if you have a time skewed commits, but
the 'mz/cherry-pick-cmdline-order' topic recently fixed (it is in
'master' and will be in 1.8.0).
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html