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

Re: [PATCH 0/2] Update git-send-email-script with --compose

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Sep 5, 2005, 11:16 UTC
Message-ID
<46a038f905090504166246dc0a@mail.gmail.com>
In-Reply-To
<11258971871874-git-send-email-ryan@michonline.com>
Ryan,

is it possible to fix the git-send-email script to "just work" reading in the emails that `git-format-patch-script -o patchdir origin` generates? I have a very ugly local patch to git-send-email-script that

 - reads "from" from git-var, can be overridden by passing an explicit --from
 - reads "subject" from the first line of STDIN or file. If the line
doesn't start with [PATCH it provides the [PATCH] prefix. I found it
really confusing that it wants to get 'from' in the first line...
that's not what git-format-patch produces!
 - it never prompts for anything
I then invoke it with 
  git-send-email-script --to git@vger.kernel.org patches/0001-bad-uglypatch

and it "just works". I haven't sent them anywhere because I just wanted it to work locally for me, and it's just a bunch of hacks. And you are clearly using something other than git-format-patch to generate those patchfiles -- and my patches would break that.

OTOH, it'd be great if it did support the git-format-patch output. Let me know if you want bits and pieces of my hack - though it's trivial.

cheers,
martin
Previous: Ryan AndersonNext: Ryan Anderson
Message 4 of 10 in “Update git-send-email-script with --compose”
  1. 0/2 Update git-send-email-script with --composeRyan Anderson, Sep 5, 2005
  2. 1/2 Make git-send-email-script ignore some unnecessary options when operating in batch mode.Ryan Anderson, Sep 5, 2005
  3. 2/2 Update documentation of --compose to git-send-email-script.txtRyan Anderson, Sep 5, 2005
  4. Martin LanghoffSep 5, 2005
  5. Ryan AndersonSep 5, 2005
  6. Junio C HamanoSep 5, 2005
  7. Martin LanghoffSep 5, 2005
  8. Junio C HamanoSep 5, 2005
  9. Martin LanghoffSep 5, 2005
  10. Junio C HamanoSep 5, 2005

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.