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

Re: Per file configurable eol-style transformations with Git?

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 22, 2009, 01:24 UTC
Message-ID
<7v6393nyg9.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1050CAACABF64864A0CF79C957BF773B@helium>
"Alexander Veit" <alexander.veit@gmx.net> writes:
Show 14 quoted lines
> Jakub Narebski wrote:
>
>> See `crlf` attribute, which can be set, unset, unspecified, set
>> to "input", and used together with core.autocrlf ("true", "false",
>> "input") and core.safecrlf.  Attributes can be set per path (using
>> globbing patterns) in .gitattributes file in tree, or in
>> .git/info/attributes (per repository).
>
> I've already tried 
>
> [core]
>   autoCRLF = true
>
> in the global gitconfig under Windows.
That would not be per-file anyway.

What Jakub suggested makes sense. You want to read up on gitattributes(5).

Previous: Alexander Veit
Message 4 of 4 in “Per file configurable eol-style transformations with Git?”
  1. Alexander VeitNov 21, 2009
  2. Jakub NarebskiNov 21, 2009
  3. Alexander VeitNov 21, 2009
  4. Junio C HamanoNov 22, 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.