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

Re: [PATCH 0/2] StGit patch series import

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
May 24, 2009, 23:03 UTC
Message-ID
<cb7bb73a0905241603r4949abb5g1a9e861aba40c6fe@mail.gmail.com>
In-Reply-To
<fabb9a1e0905241557l403037f6p7c1df1f587cb9cf7@mail.gmail.com>
On Mon, May 25, 2009 at 12:57 AM, Sverre Rabbelier <srabbelier@gmail.com> wrote:
Show 18 quoted lines
> Heya,
>
> On Mon, May 25, 2009 at 00:53, Giuseppe Bilotta
> <giuseppe.bilotta@gmail.com> wrote:
>> This is an interesting solution. And git-am could call git-munge
>> automatically before feeding the patches to mailinfo, replacing
>>  git mailinfo $keep $utf8 "$dotest/msg" "$dotest/patch" \
>>      <"$dotest/$msgnum" >"$dotest/info"
>> with
>>  git munge "$dotest/$msgnum" | git mailinfo etc
>
> I was thinking the other way around, so that 'git am' doesn't need to
> be modified.
>
> Behind the scenes, git munge "$dotest/$msgnum" does something like:
> 1. munge the file so that it's in the appropriate format
> 2. dispatch to 'git am' with the munged file
> 3. profit

But then the name munge would not be descriptive of what the command does. If git am is to be left untouched, I would rather then have something like git import-patches that accepts patches in 'any' format, expanding StGIT series into the respective patches and transforming everything into mbox format, invoking am on the final result. But I see no particular reason why git-am shouldn't be able to handle all this by itself

-- 
Giuseppe "Oblomov" Bilotta
Previous: Sverre RabbelierNext: Junio C Hamano
Message 12 of 14 in “StGit patch series import”
  1. 0/2 StGit patch series importGiuseppe Bilotta, May 24, 2009
  2. Junio C HamanoMay 24, 2009
  3. Giuseppe BilottaMay 24, 2009
  4. Sverre RabbelierMay 24, 2009
  5. Giuseppe BilottaMay 24, 2009
  6. Sverre RabbelierMay 24, 2009
  7. Junio C HamanoMay 24, 2009
  8. Giuseppe BilottaMay 24, 2009
  9. Sverre RabbelierMay 24, 2009
  10. Giuseppe BilottaMay 24, 2009
  11. Sverre RabbelierMay 24, 2009
  12. Giuseppe BilottaMay 24, 2009
  13. Junio C HamanoMay 25, 2009
  14. Giuseppe BilottaMay 25, 2009

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.