Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Applying patches sent via email
Date: Tue, 13 Jul 2021 14:42:17 -0700	[thread overview]
Message-ID: <87h7gxao1y.fsf@ericabrahamsen.net> (raw)

Hi all,

I've always been slightly annoyed at the hoops I have to jump through to
apply git patches that I get in email to various repos that I have on
disk. I'm starting to realize that it's actually easier than I thought
(specifically, "git am" is much more capable than I realized), and I'm
thinking that there's only a couple bits of glue missing, which means
someone has probably already done this.

Does anyone have a facility that can be used to apply git patches
received via email to local repos? I'd like equivalents to both
`gnus-summary-pipe-part' and `gnus-summary-pipe-output' -- ie applicable
either to a mime part or to the message as a whole -- where it prompts
me for a local directory (git repo), possibly for a git branch in that
repo, then handles the running of "git am" for me.

Please let me know if you've got anything like this on hand!

TIA,
Eric



             reply	other threads:[~2021-07-13 21:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13 21:42 Eric Abrahamsen [this message]
2021-07-13 21:50 ` Lars Ingebrigtsen
2021-07-13 22:38   ` Eric Abrahamsen
2021-07-15  4:33     ` Lars Ingebrigtsen
2021-07-15 16:15 ` Štěpán Němec
2021-07-15 17:37   ` Eric Abrahamsen
2021-07-15 20:06 ` Tassilo Horn
2021-07-16 14:47   ` Eric Abrahamsen

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=87h7gxao1y.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.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).