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

Re: Add option in git-am to ignore leading text?

From
FPFrans Pop <elendil@planet.nl>
Date
Jul 28, 2009, 19:11 UTC
Message-ID
<200907282111.14404.elendil@planet.nl>
In-Reply-To
<20090728181524.GC16168@vidovic>
On Tuesday 28 July 2009, Nicolas Sebrecht wrote:
Show 14 quoted lines
> > Here are some other examples (some of which would equally need to
> > drop or change a separator line).
> > http://lkml.org/lkml/2009/6/25/62
> Uses "From:", "Date:", and "Subject:".
>
> > http://lkml.org/lkml/2009/6/22/114
> Uses "From:" and "Subject:".
>
> > http://lkml.org/lkml/2009/6/30/109
> Uses "Subject:" only.
>
> I guess there are as results as contributors but it could be possible
> to add some rules to the format. This could ending up with an unuseable
> feature in practice, though. I don't know.

My proposal was "when it encounters _either_ a From: _or_ a Subject: pseudo header" which would work for all examples. But I fully agree with you that some rules are needed. Whether to do the same on Date: is less obvious, but I doubt that would ever be seen without at least one of the others (and the rules could specify that).

> > http://lkml.org/lkml/2009/6/30/224
> Broken link ?
Works for me, just slow.
> > And I've also seen plenty of cases where quoted lines _were_ a
> > desired part of a commit log.
>
> Yes, that's why it's an _option_.

IMHO it does not add much. My proposal would be more generic exactly because it defines the pseudo headers as a natural separator between introduction and the part of the mail git-am should act on.

Previous: Nicolas SebrechtNext: Frans Pop
Message 6 of 7 in “Add option in git-am to ignore leading text?”
  1. Frans PopJul 28, 2009
  2. Nicolas SebrechtJul 28, 2009
  3. Mark BrownJul 28, 2009
  4. Frans PopJul 28, 2009
  5. Nicolas SebrechtJul 28, 2009
  6. Frans PopJul 28, 2009
  7. Frans PopJul 28, 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.