Is it possible to ask Git to use CRLF instead of just LF at the end of the lines it puts into a file when it needs merging?
If resolving conflicts in a text editor without visible EOL characters, it is easy to accidentally end up with these LFs getting merged if you delete by selection:
Leaving you with:
And now two LFs have sneaked their way into your otherwise CRLF file!
Obviously one alternative is to just take more care over line endings when resolving merges, but I thought I would ask in case there were a way to tell Git to use CRLF for the lines it generates here.