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

Re: missing handling of "No newline at end of file" in git am

From
Olaf Hering <olaf@aepfle.de>
Date
Feb 14, 2017, 20:51 UTC
Message-ID
<20170214215103.7d5e5f4c@probook.ubnt.lan>
In-Reply-To
<xmqqh93w8q0r.fsf@gitster.mtv.corp.google.com>

Am Tue, 14 Feb 2017 12:40:36 -0800 schrieb Junio C Hamano <gitster@pobox.com>:

Show 6 quoted lines
> Olaf Hering <olaf@aepfle.de> writes:
> 
> > How is git send-email and git am supposed to handle a text file
> > which lacks a newline at the very end? This is about git 2.11.0.  
> 
> I think this has always worked, though.

For me it complains in line 721, which is the problematic one. I try to apply from mutt via (cd /some/dir && git am), but that probably does not make a difference.

How would I debug it?
Olaf
Previous: Junio C HamanoNext: Olaf Hering
Message 3 of 6 in “missing handling of "No newline at end of file" in git am”
  1. Olaf HeringFeb 14, 2017
  2. Junio C HamanoFeb 14, 2017
  3. Olaf HeringFeb 14, 2017
  4. Olaf HeringFeb 15, 2017
  5. Eric WongFeb 20, 2017
  6. Jeff KingFeb 14, 2017

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.