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

Re: git am and the wrong chunk of ---

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Aug 10, 2012, 16:39 UTC
Message-ID
<50253939.7080908@zytor.com>
In-Reply-To
<7v628qlo53.fsf@alter.siamese.dyndns.org>
On 08/10/2012 09:15 AM, Junio C Hamano wrote:
Show 28 quoted lines
> "H. Peter Anvin" <hpa@zytor.com> writes:
> 
>> The users I am referring to generally have a --- line, rather than
>> a scissor, between the cover text and commit.  Also, there is
>> (almost) always a From: line and subject at the top of the patch
>> proper.
> 
> Oh, so it is more like this?
> 
>     From: author name <author@address.xz>
>     Date: author date
>     Subject: patch title
> 
>     Heya,
> 
>     I was walking my dog when I found a solution to this
>     problem the other day.  Here it is.
> 
>     ---
>     >From 755e8b3f35e3991a735a6be740eda4567d45a741 Mon Sep 17 00:00:00 2001
>     From: author name <author@address.xz>
>     Date: random date we do not care
>     Subject: patch title
> 
>     commit message body
> 
>     ---
> 
That is exactly what I see, except usually with the mbox header.

However, it makes sense to me to treat From: as a scissor (we can then ignore the preceding --- completely).

	-hpa
Previous: Junio C Hamano
Message 8 of 8 in “git am and the wrong chunk of ---”
  1. H. Peter AnvinAug 10, 2012
  2. Junio C HamanoAug 10, 2012
  3. Jeff KingAug 10, 2012
  4. Andreas EricssonAug 10, 2012
  5. Junio C HamanoAug 10, 2012
  6. H. Peter AnvinAug 10, 2012
  7. Junio C HamanoAug 10, 2012
  8. H. Peter AnvinAug 10, 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.