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

[RFC] Allowing new eof whitelines while still doing whitespace trailing-space fix.

From
Thell Fowler <tbfowler4@gmail.com>
Date
Aug 1, 2009, 16:53 UTC
Message-ID
<1249145624.2774.16.camel@GWPortableVCS>

As part of a current mirroring project of a dirty upstream repo that has mixed line endings and leading/trailing whitespace issues it became apparent that the current trailing-space fixing in ws.c worked correctly, but the new_blank_lines_at_end processing in builtin-apply.c would remove the newly fixed line. Also, as noted in a previous thread, there are times when adding new whitelines at eof is a needed capability, yet the desire remains to correct other whitespace issues within the patch.

The patch in the follow-up post is an attempt to fix that. This is my first git-core patch, so please be honest but gentle. :P If the fix is of interest I'd be glad to go through the steps of making a test case and whatever else is needed.

Next: TBFowler
Message 1 of 3 in “[RFC] Allowing new eof whitelines while still doing whitespace trailing-space fix.”
  1. Thell FowlerAug 1, 2009
  2. Add --allow-eof-whitelines to git-apply while still doing whitespace trailing-space fixing.TBFowler, Aug 1, 2009
  3. ThellAug 1, 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.