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

Re: core.whitespace space-in-indent feature request

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 18, 2011, 20:31 UTC
Message-ID
<7vwrm2j6nv.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1295380297.3778.47.camel@drew-northup.unet.maine.edu>
Drew Northup <drew.northup@maine.edu> writes:
Show 12 quoted lines
> On Fri, 2011-01-14 at 13:40 +0100, Victor Engmark wrote:
>> Hi all,
>> 
>> I couldn't find this mentioned anywhere, but it would be useful for
>> languages where you typically want only tab characters in indentation,
>> like makefiles. Would be equivalent or similar to indent-with-non-tab
>> and tabwidth=1.
>
> Victor,
> What would the point of this be? Git doesn't change the layout of the
> code when storing it--that's up to the thing between the chair and the
> keyboard.

True, but I think Victor wants to be able to ask "diff --check" to complain and diff --color to highlight when it sees a line that begins with a SP (or a HT then SP) by setting:

	* whitespace=space-in-indent
or something in the attributes file.

As "equivalence" exists, not very much interested in coding it myself, though ;-)

Previous: Drew NorthupNext: Victor Engmark
Message 3 of 6 in “core.whitespace space-in-indent feature request”
  1. Victor EngmarkJan 14, 2011
  2. Drew NorthupJan 18, 2011
  3. Junio C HamanoJan 18, 2011
  4. Victor EngmarkJan 19, 2011
  5. Johannes SixtJan 19, 2011
  6. Victor EngmarkJan 19, 2011

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.