On 7/2/06, Jakub Narebski <jnareb@xxxxxxxxx> wrote:
Marco Costalba wrote: > On 7/2/06, Jakub Narebski <jnareb@xxxxxxxxx> wrote: >> Currently in qgit one can git-format-patch a commit. It woul be nice >> if one would be able to git-cherry-pick and git-cherry-pick -n a commit >> (denoting the head, i.e. where cherry pick would be applied to). It would >> be very usefull in reordering patches (cleaning up history). > > Currently in qgit you can git-format-patch a commit series and git-am > a given patch file series. > This can be done transparently with a drag & drop mechanic: > > 1) Open the source repository > 2) Then open a new qgit instance (File->Open in a new window...) > 3) Open the destination repository in the new qgit window > 4) Drag & drop selected commits (multi selection in supported) from > source to destination. Does multi selection commits all selected commits as one merged commit?
No. Currently it's just a shortcut for git-format-patch --> git-am
> I normally use this instead of git-cherry-pick that, I admit, I don't > know very well, so please I need some more hints on how to upgrade > this behaviour introducing git.cherry-pick support. I use git-cherry-pick -n to join few patches into one, or with editing the result to split one patch/commit into few smaller. git-cherry-pick [-n] <commit> picks up a commit and drops it on top of current branch. I'd like to see it in context menu for current commit, i.e. "cherry-pick to <head>", where <head> will be replaced by current branch name, or/and "cherry-pick -n to <head>".
From the git-cherry-pick documentation I see -n option "applies the
change necessary to cherry-pick the named commit to your working tree, but does not make the commit" What do you think about this: When dropping the selected commits, instead of creating new commits, appears a message box with something like "Do you want to apply the commits on top of your current branch or on your working directory?" Sounds good for you? Or you still prefer the context menu? In the latter case, if I have understood correctly, you are limited to cherry-pick among branches and/or working directory of the _same_ repository. Marco - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html