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

idea to tweak wording of CRLF warning

From
Mmark.yagnatinsky@barclays.com <mark.yagnatinsky@barclays.com>
Date
Apr 26, 2021, 17:31 UTC
Message-ID
<AM6PR01MB4166BC567911A05016DE2918F9429@AM6PR01MB4166.eurprd01.prod.exchangelabs.com>
If I'm on Windows and I "git add" a file with LF line endings, I get the following misleading warning:
warning: LF will be replaced by CRLF in t.txt

This makes me think something is about to happen "now" but actually the warning is about what will happen "later". In particular, the file will be committed with LF, but git may convert to CRLF when it comes time to check out the file. Thus, I propose to add the words "on checkout" somewhere in the warning message, to emphasize that the conversion will occur later instead of now. E.g., "warning, LF will be replaced by CRLF on next checkout of t.txt" or something along those lines.

This suggestion was inspired by the amazingly detailed answer to my question on Stack overflow, without which I would have been badly confused: https://stackoverflow.com/questions/67199433/git-line-endings-behavior-does-not-match-documentation

_________________________________________________________________________________________________________________________________________________________________________________________________________________________________ �This message is for information purposes only, it is not a recommendation, advice, offer or solicitation to buy or sell a product or service nor an official confirmation of any transaction. It is directed at persons who are professionals and is not intended for retail customer use. Intended for recipient only. This message is subject to the terms at: www.barclays.com/emaildisclaimer.

For important disclosures, please see: www.barclays.com/salesandtradingdisclaimer regarding market commentary from Barclays Sales and/or Trading, who are active market participants; https://www.investmentbank.barclays.com/disclosures/barclays-global-markets-disclosures.html regarding our standard terms for the Investment Bank of Barclays where we trade with you in principal-to-principal wholesale markets transactions; and in respect of Barclays Research, including disclosures relating to specific issuers, please see http://publicresearch.barclays.com.� _________________________________________________________________________________________________________________________________________________________________________________________________________________________________ If you are incorporated or operating in Australia, please see https://www.home.barclays/disclosures/importantapacdisclosures.html for important disclosure. _________________________________________________________________________________________________________________________________________________________________________________________________________________________________ How we use personal information see our privacy notice https://www.investmentbank.barclays.com/disclosures/personalinformationuse.html _________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Next: Torsten Bögershausen
Message 1 of 3 in “idea to tweak wording of CRLF warning”
  1. mark.yagnatinsky@barclays.comApr 26, 2021
  2. Torsten BögershausenApr 26, 2021
  3. mark.yagnatinsky@barclays.comApr 26, 2021

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.