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

[rfd] a new core.whitespace class "\No newline at end of file"

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 8, 2025, 17:39 UTC
Message-ID
<xmqqjz15fg3i.fsf@gitster.g>

It would be a good sized internship project to introduce a new core.whitespace class that is about a file that ends in an incomplete line (it would be way too big as a microproject, so I would not add the #leftoverbits tag to this one).

The student needs to learn quite a lot of things, including
 - they need to study the diff machinery to learn how existing
   whitespace breakages are reported, in order to figure out how to
   add a new class of whitespace breakage;
 - they need to find a good name for this new class;
 - they need to study the apply machinery to learn how existing
   whitespace breakages are reported or corrected, in order to
   figure out how to add support for this new class.
Thoughts?
Next: brian m. carlson
Message 1 of 2 in “[rfd] a new core.whitespace class "\No newline at end of file"”
  1. Junio C HamanoOct 8, 2025
  2. brian m. carlsonOct 8, 2025

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.