git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* one half of a rebase
@ 2009-09-11 17:25 Geoffrey Irving
  2009-09-11 18:39 ` Matthieu Moy
  2009-09-11 21:10 ` Alex Riesen
  0 siblings, 2 replies; 5+ messages in thread
From: Geoffrey Irving @ 2009-09-11 17:25 UTC (permalink / raw)
  To: git; +Cc: Dylan Simon

If I'm on branch topic and do "git rebase master", git performs two operations:

1. Rewind the current head to master.
2. For each commit in topic that isn't in master, cherry pick it onto
the current head.

I would like to be able to do (2) as a separate operation.  For
example, if I start out on branch master and want to get all of
topic's commits on top of the current head, I currently do

    git checkout topic
    git rebase master
    git branch -d master
    git branch -m master

If I could do (2) as a separate operation, it would look something like

    git cherry-pick-all topic

which is simpler and faster since it avoids switching files back and
forth (master to topic and back).  Is there a robust way to achieve
the cherry-pick-all semantics with current commands?  If not, how
difficult would it be to partition rebase accordingly?

Thanks,
Geoffrey

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-09-12 14:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-11 17:25 one half of a rebase Geoffrey Irving
2009-09-11 18:39 ` Matthieu Moy
2009-09-11 21:10 ` Alex Riesen
2009-09-12  2:23   ` Geoffrey Irving
2009-09-12 14:38     ` Paolo Bonzini

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).