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

Re: [PATCH] Document disabling core.whitespace values trailing-space and space-before-tab

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 25, 2008, 04:44 UTC
Message-ID
<7vbq0m608w.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080724172912.6117@nanako3.lavabit.com>
Nanako Shiraishi <nanako3@lavabit.com> writes:
Show 11 quoted lines
> Quoting "Peter Valdemar Mrch (Lists)"  <4ux6as402@sneakemail.com>:
>
>> The '-trailing-space' syntax to disable the trailing-space setting is
>> not obvious and not documented as far as I can see. I would have
>> assumed a value of '' would disable it.
>>
>> Is there a documentation bug here? If so, I suggest this patch. I
>> didn't find anywhere else where the '-setting' syntax was used to
>> disable something.
>
> Doesn't gitattributes(5) describe the overall syntax in detail?

Yes, but as Peter says in his reply to you, it only talks about [-!]name syntax to force the variable to unset (with '-' prefix) and to revert the variable to the unspecified state (with '!' prefix).

Various "values" given to the whitespace attribute actually act as if they are sub-variables and obey the similar "[-]name" rule, but (1) that is left unsaid, and (2) in that context '!' does not make sense so only '-' has any meaning. We would certainly need to clarify that.

So I think Peter's patch is going in the right direction.
Previous: Peter Valdemar Mørch (Lists)Next: Peter Valdemar Mørch
Message 4 of 8 in “Document disabling core.whitespace values trailing-space and space-before-tab”
  1. Document disabling core.whitespace values trailing-space and space-before-tabPeter Valdemar Mørch (Lists), Jul 24, 2008
  2. Nanako ShiraishiJul 24, 2008
  3. Peter Valdemar Mørch (Lists)Jul 24, 2008
  4. Junio C HamanoJul 25, 2008
  5. Peter Valdemar MørchJul 25, 2008
  6. Peter Valdemar Mørch (Lists)Jul 25, 2008
  7. Junio C HamanoJul 25, 2008
  8. Junio C HamanoJul 25, 2008

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.