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

Re: [PATCH 1/2] diff.c: second war on whitespace.

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 23, 2006, 09:15 UTC
Message-ID
<ef2u05$f29$1@sea.gmane.org>
In-Reply-To
<7vbqp7vxb8.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 6 quoted lines
> gmane.comp.version-control.git
> This adds DIFF_WHITESPACE color class (default = reverse red) to
> colored diff output to let you catch common whitespace errors.
> 
>  - trailing whitespaces at the end of line
>  - a space followed by a tab in the indent
In gitweb/gitweb.perl, around %feature hash definition, we have:
        <TAB> # <SP> <TAB> 'sub' ...
and I think that is exception to the "no space followed by tab" rule.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 3 in “diff.c: second war on whitespace.”
  1. 1/2 diff.c: second war on whitespace.Junio C Hamano, Sep 23, 2006
  2. Jakub NarebskiSep 23, 2006
  3. Junio C HamanoSep 23, 2006

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.