git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add a svnrdump-simulator replaying a dump file for testing.

From
Jeff King <peff@peff.net>
Date
Jul 23, 2012, 20:02 UTC
Message-ID
<20120723200214.GA6277@sigill.intra.peff.net>
In-Reply-To
<vpqwr1ugt06.fsf@bauges.imag.fr>
On Mon, Jul 23, 2012 at 09:46:49PM +0200, Matthieu Moy wrote:
Show 10 quoted lines
> > Damn. That's usually no problem with kmail either, if the config is right.
> > I've already used git-send-email several times.
> > But for replying to threads and adding several Cc: addresses it's a little 
> > cumbersome.
> > How do you do that in a nice way?
> 
> For the threading itself, I usually find the message-id, and use
> "git send-email --in-reply-to='<cut-and-pasted-id>'". The painful part
> is when you want to reproduce a Cc: list, but I have no magic trick for
> that ;-).

I save a copy of the message I am replying to (usually my cover letter, which I generated by just replying in my MUA) into a well-known location (I use a mutt hot-key to do this), and then run it through this monstrosity:

  get_reply_headers() {
    perl -ne '
      if (defined $opt && /^\s+(.*)/) {
        $val .= " $1";
        next;
      }
      if (defined $opt) {
        print "--$opt=", quotemeta($val), " ";
        $opt = $val = undef;
      }
      if (/^(cc|to):\s*(.*)/i) {
        $opt = lc($1);
        $val = $2;
      }
      elsif (/^message-id:\s*(.*)/i) {
        $opt = "in-reply-to";
        $val = $1;
      }
    '
  }
which can be used on the command line of format-patch or send-email, like:
  eval "git format-patch $(get_reply_headers <your-patch-file)"

I put the result in an mbox, then review and send it out in mutt (using the resend-message command), but you could invoke send-email directly, or format-patch into a file for review and send it with send-email.

-Peff
Previous: Matthieu MoyNext: Junio C Hamano
Message 12 of 21 in “GSOC remote-svn”
  1. Florian AchleitnerJul 22, 2012
  2. Jonathan NiederJul 22, 2012
  3. Florian AchleitnerJul 23, 2012
  4. Jonathan NiederJul 23, 2012
  5. Add a svnrdump-simulator replaying a dump file for testing.Florian Achleitner, Jul 23, 2012
  6. Jonathan NiederJul 23, 2012
  7. Florian AchleitnerJul 23, 2012
  8. Florian AchleitnerJul 23, 2012
  9. Matthieu MoyJul 23, 2012
  10. Florian AchleitnerJul 23, 2012
  11. Matthieu MoyJul 23, 2012
  12. Jeff KingJul 23, 2012
  13. Junio C HamanoJul 23, 2012
  14. Add a svnrdump-simulator replaying a dump file for testing.Florian Achleitner, Jul 23, 2012
  15. Junio C HamanoJul 23, 2012
  16. Jonathan NiederJul 24, 2012
  17. Florian AchleitnerJul 25, 2012
  18. Erik Faye-LundJul 24, 2012
  19. Matthieu MoyJul 23, 2012
  20. Jonathan NiederJul 23, 2012
  21. Florian AchleitnerJul 23, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.