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

Re: [PATCH v7] safecrlf: Add mechanism to warn about irreversible crlf conversions

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 4, 2008, 15:01 UTC
Message-ID
<alpine.LSU.1.00.0802041457190.7372@racer.site>
In-Reply-To
<86F2B863-6FE8-407E-B535-3F49782DA5F9@zib.de>
Hi,
On Mon, 4 Feb 2008, Steffen Prohaska wrote:
Show 13 quoted lines
> On Feb 3, 2008, at 11:29 PM, Johannes Schindelin wrote:
> 
> > However, safe_crlf != SAFE_CRLF_FALSE does not affect people who did 
> > not set core.crlf = input or core.crlf = true.  And for those who set 
> > core.crlf, the default makes sense, absolutely.
> 
> I add a comment to the commit message.
> 
> However, I don't fully agree with your comment.  If your Unix 
> environment is as sane as you assume and you never exchange any data 
> with the "cursed" people, you can safely set core.autocrlf=input and 
> core.safecrlf=warn and still should never see any warning.  Well you'd 
> spent some CPU cycles on verifying that your assumptions hold.

It is not only about spend CPU cycles. It is about content-tracking. Personally, I have no single repository which munges data when putting it into the index. That is what the crlf handling is: munging. I want the data verbatim, and if I decide to check in a file with carriage return before line feed, then so be it.

Of course, the code paths in your patch would be less exercised, and bugs/interactions could be conveniently hidden for all those who decide not to activate safecrlf like me, but I do not see why Linux/Unix people should be punished for a shortcoming that affects only projects which partly work on Windows, and then only if non-POSIX tools are used.

Ciao, Dscho

Previous: Steffen ProhaskaNext: Junio C Hamano
Message 16 of 17 in “safecrlf: Add mechanism to warn about irreversible crlf conversions”
  1. safecrlf: Add mechanism to warn about irreversible crlf conversionsSteffen Prohaska, Feb 2, 2008
  2. Junio C HamanoFeb 3, 2008
  3. Steffen ProhaskaFeb 3, 2008
  4. safecrlf: Add mechanism to warn about irreversible crlf conversionsSteffen Prohaska, Feb 3, 2008
  5. Johannes SchindelinFeb 3, 2008
  6. Steffen ProhaskaFeb 4, 2008
  7. [v8] safecrlf: Add mechanism to warn about irreversible crlf conversionsSteffen Prohaska, Feb 4, 2008
  8. Johannes SchindelinFeb 4, 2008
  9. Steffen ProhaskaFeb 4, 2008
  10. Johannes SchindelinFeb 4, 2008
  11. Junio C HamanoFeb 6, 2008
  12. Steffen ProhaskaFeb 6, 2008
  13. [v9] safecrlf: Add mechanism to warn about irreversible crlf conversionsSteffen Prohaska, Feb 6, 2008
  14. Junio C HamanoFeb 6, 2008
  15. Steffen ProhaskaFeb 6, 2008
  16. Johannes SchindelinFeb 4, 2008
  17. Junio C HamanoFeb 3, 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.