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, 20:06 UTC
Message-ID
<46a038f90509051306212d4e93@mail.gmail.com>
In-Reply-To
<7vll2b4ake.fsf@assigned-by-dhcp.cox.net>
On 9/6/05, Junio C Hamano <junkio@cox.net> wrote:
> Ryan Anderson <ryan@michonline.com> writes:
> > Sorry about that - I always export using git-format-patch using --mbox,
> > and those work nicely.  I'm a bit reluctant to do the [PATCH] fixup, but
> > I think I will:

Thanks Ryan for the clarification! I hadn't realized it would work correctly with --mbox -- unfortunately it doesn't work very well in the one-file-per-patch (legacy?) mode. Also, telling it _not_ to prompt when it can guess it, is far better (a confirm y/n can still be a good thing if you want to ensure the user gets a chance to review the values guessed).

Show 10 quoted lines
> Martin, --mbox has the added benefit that it consistently
> preserves the From: and Date: information even for your own
> patches, because it implies --date and --author.  By default
> without --author and --date these are not preserved from the
> original commits for your own patches, primarily because
> format-patch without --mbox was written for reorganizing and
> reordering existing patches (i.e. export, concatenate some, edit
> some hunks, and eventually feed it to applymbox to make commits;
> you do not typically want to keep the original author date for
> this kind of use).

Fair enough -- blame it on my primitive approach of only having 2 working repositories, and having some patches in them that I'm not pushing upstream. Exporting to mbox would mean that I have to edit the mbox file to remove the patches I don't intend to publish.

... and on my naive reading of git-send-email documentation -- it doesn't mention mbox format at all, so I assumed it would expect one patch per file.

> Martin, is there a reason you do not want --mbox format
> (e.g. format-patch --mbox spits out Subject: line undesirably
> formatted while it does what you want without --mbox)?

Hmmm -- that I am too lazy to keep several heads or several repos, and organize them to have a "tojunio" branch? So far I've been working on one or two files (archimport) and customizing a couple of others with strictly local changes (git-send-email for instance), so it didn't make sense to formally segregate the heads. A simple review and manual "cherrypicking" of the patches I wanted to send was enough.

cheers,
martin
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 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.