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

Re: [PATCH 1/2] pathattr: path based configuration of various attributes.

From
Junio C Hamano <junkio@cox.net>
Date
Mar 1, 2007, 09:24 UTC
Message-ID
<7vhct5wc2k.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200703010911.56048.andyparkins@gmail.com>
Andy Parkins <andyparkins@gmail.com> writes:
Show 13 quoted lines
> On Thursday 2007 March 01 07:18, Junio C Hamano wrote:
>
>> 	[pathattr "text/plain"]
>>         	conv_i = crlf
>> 		path = "*.txt"
>>                 path = "*.c"
>>                 path = "*.h"
>
> Can I suggest that "crlf" is not the right name for something like this?  What 
> you actually want is to say
>
>  conv_i = convert_from_local_lineendings
>  conv_o = convert_to_local_lineendings

The sample traits' value "crlf" is probably a misnomer. As you noticed, they are to _force_ the conversion. You can add one that honors core.autocrlf (which would be set to true on Windows and to false on UNIX).

>  conv_i = eol_to_lf
>  conv_o = eol_to_local
Probably.
> --- Wild rantings start here, ignore at will ---

Will ignore for now, since I have more interesting patches coming for your enjoyment ;-).

Previous: Andy Parkins
Message 3 of 3 in “pathattr: path based configuration of various attributes.”
  1. 1/2 pathattr: path based configuration of various attributes.Junio C Hamano, Mar 1, 2007
  2. Andy ParkinsMar 1, 2007
  3. Junio C HamanoMar 1, 2007

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.