From: Martin Langhoff <martin.langhoff@gmail.com>
To: Alan Chandler <alan@chandlerfamily.org.uk>
Cc: git@vger.kernel.org
Subject: Re: Newbie falls at first hurdle
Date: Mon, 19 Sep 2005 07:06:39 +1200 [thread overview]
Message-ID: <46a038f90509181206643bce7@mail.gmail.com> (raw)
In-Reply-To: <200509181347.11403.alan@chandlerfamily.org.uk>
On 9/19/05, Alan Chandler <alan@chandlerfamily.org.uk> wrote:
> Still struggling with how to cherry pick parts a previous update (between
> possibly two other branches) and apply them to a current branch - all the
> tutorials assume you want it all, and I can't really understand what the
> cherry pick commands do from their manuals.
Forget the cherry pick commands -- here's a usable, easy strategy.
git-checkout the "source" branch, create a temporary directory to hold
the patches, and call
git-format-patch --mbox -o patchdir destbranch
This will create one file per patch in the destination directory. Feel
free to delete patches you don't want, and edit the patches you've got
there. Then switch to the destination branch, and use git-applymbox to
merge them in.
If you do this repeatedly, git-format-patch will not reexport patches
you've merged to the destination branch already (if they merged
cleanly unchanged)... or at least that's the theory ;)
The only limitation I've found in this strategy is that it doesn't
deal with binary objects. I'm lost as to what to do in those cases.
cheers,
martin
next prev parent reply other threads:[~2005-09-18 19:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-17 12:09 Newbie falls at first hurdle Alan Chandler
2005-09-17 16:13 ` Junio C Hamano
2005-09-17 16:30 ` Alan Chandler
2005-09-17 16:50 ` Junio C Hamano
2005-09-17 17:01 ` Alan Chandler
2005-09-18 1:35 ` Horst von Brand
2005-09-18 10:54 ` Martin Langhoff
2005-09-18 12:47 ` Alan Chandler
2005-09-18 17:22 ` Junio C Hamano
2005-09-18 17:40 ` Linus Torvalds
2005-09-18 17:54 ` Junio C Hamano
2005-09-18 19:11 ` Alan Chandler
2005-09-18 20:10 ` Junio C Hamano
2005-09-19 19:09 ` Sven Verdoolaege
2005-09-18 19:06 ` Martin Langhoff [this message]
2005-09-18 14:59 ` Petr Baudis
2005-09-18 17:35 ` Junio C Hamano
2005-09-18 19:09 ` [PATCH] Improve git-update-index error reporting Petr Baudis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46a038f90509181206643bce7@mail.gmail.com \
--to=martin.langhoff@gmail.com \
--cc=alan@chandlerfamily.org.uk \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).