idea to tweak wording of CRLF warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux