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

Whitespace options

From
GKGerd Knops <gerti-git@bitart.com>
Date
Apr 2, 2009, 19:18 UTC
Message-ID
<3C72F4A7-9B7A-44D0-B13D-FD534EB02C27@bitart.com>
Hi all,

I think there should be a whitespace option that ignores lines that consists completely of whitespace vs lines with actual trailing whitespace preceded by non-whitespace.

The reason is that many editors (especially those supporting indent- based code folding) keep 'empty' lines at the current indentation level. git (with default settings) flags all those lines.

I know I could just remove 'trailing-space' from 'core.whitespace', but I would actually still like be notified about the case where a line that is not whitespace only ends with trailing whitespace.

Thanks
Gerd
Next: Joshua Juran
Message 1 of 3 in “Whitespace options”
  1. Gerd KnopsApr 2, 2009
  2. Joshua JuranApr 3, 2009
  3. Miles BaderApr 3, 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.