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

Dealing with mac linefeeds in git repository

From
Jjussi.sirpoma@sks.fi <jussi.sirpoma@sks.fi>
Date
Mar 31, 2010, 13:07 UTC
Message-ID
<OF7E748769.D4E7BC90-ONC22576F7.00483B3D-C22576F7.00484D0A@sks.fi>
I am running cygwin git version 1.6.4.2.

Some of the source code for our projects is encoded in mac linefeeds due to proprietary software platform. My current solution is to flag those files tu use no linefeed conversion and to use separate diff program by having this in .gitattributes:

*.BA -crlf diff=winmerge
I also have these crlf settings enabled:

core.autocrlf=true core.safecrlf=true

This solution works, but is not optimal as git cannot follow the changed lines, produce annotations or diffs. Now I am wondering if I could make git work with a little different configuration:

* The *.BA files with mac linefeeds would be stored with normal linux 
linefeeds
* The files would be converted on checkout to mac linefeeds the same way 
as core.autcrlf works
Is this doable or even a good approach?
- Jussi Sirpoma
Next: Ilari Liusvaara
Message 1 of 3 in “Dealing with mac linefeeds in git repository”
  1. jussi.sirpoma@sks.fiMar 31, 2010
  2. Ilari LiusvaaraMar 31, 2010
  3. jussi.sirpoma@sks.fiApr 1, 2010

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.