My files are on a remote Ubuntu Linux server. When I download the files and edit it in either the WinSCP text editor or Notepad++, the file end-of-line style changes to Windows. So when I resave the file back to Ubuntu the lines are off and SVN Diff thinks every line has changed.
FYI, I edit the file by double clicking the file in WinSCP. This program launches the file in the editor. Every time I save, the file is automatically copied back to the Linux server.
How do I prevent the end-of-line style issue?
Default Transfer Settings To change the settings, use Edit button to show Transfer Settings dialog (alternatively you may click Transfer settings box). You cannot delete nor reorder the default transfer settings.
Transfer Files with WinSCP After connecting, you'll get two panels with files. The one on the right shows the files on the Linux instance and it opens by default in the user's home directory. This is /root for the root user and /home/name_of_user for other users.
Does this thread help? More precisely this part:
From this, it seems to me that you have forced WinSCP to use text mode transfer, which imply the unix->dos conversion. Just force the binary mode to avoid the conversion.
I wasn't able to figure out why I had the whitespace issue but I was able to figure out how to ignore whitespaces.
You can use:
svn diff -x'-uw --ignore-eol-style'
This worked well enough.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With