On Mon, Dec 05, 2016 at 01:51:36PM +0100, Silvan Jegen wrote:
> On Mon, Dec 5, 2016 at 1:45 PM, Markus Teich <[email protected]> 
> wrote:
> > Anselm R Garbe wrote:
> >> I agree, but my MUA couldn't detect a proper attachment.
> >
> > Heyho Anselm,
> >
> > `git am` also works with the whole source-text of a mail. For example with 
> > mutt
> > you can create a local patches.mbox maildir on your filesystem and then 
> > copy the
> > mail source there with `C`. Then `git am PATH/TO/patches.mbox/cur/FILENAME` 
> > does
> > the trick.
> 
> It's also possible to just pipe the text of an email directly to 'git
> am' by using mutt's '|' command (obviously you will have to run mutt
> from your repo dir for this to work).
> 

Or do:
        | cat >/tmp/patch
        cd repodir
        git am /tmp/patch

-- 
Kind regards,
Hiltjo

Reply via email to