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

feature request: text=input option in .gitattributes

From
Cameron Taggart <cameron.taggart@gmail.com>
Date
Feb 11, 2014, 14:57 UTC
Message-ID
<CAABik=sZowhZ4hMi6R=KQHWT_FGBJ9iXJEjtX26wueCzjEQL7w@mail.gmail.com>

After requesting this as https://github.com/msysgit/msysgit/issues/164, I was told to take it upstream, so here I am.

I would like a text=input feature added that has the same behavior as text=auto, except that it defaults to core.autocrlf=input behavior instead of core.autocrlf=true. This would ensure that the repository is normalized and the text files in the working directory match what is in the repository by default. In mysysgit#164, I highlighted the behavior changes in a spreadsheet. This would still allow users to set core.autocrlf=true if they want CRLF on their Windows system. Using text=input instead of text=auto would ensure that Windows build servers like TFS and TeamCity compile libraries with code that matches exactly what is in the repository. This in turn, would make it much much easier to do source indexing using my SourceLink project. :)

thanks, Cameron

Next: Torsten Bögershausen
Message 1 of 3 in “feature request: text=input option in .gitattributes”
  1. Cameron TaggartFeb 11, 2014
  2. Torsten BögershausenFeb 12, 2014
  3. Cameron TaggartFeb 13, 2014

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.