svn diff on windows vs linux

963 views Asked by At

I have two checkouts of an SVN repository, one on a Windows machine, and one on a Linux machine. The exact same modification is made to both repositories. I then run svn diff on both to generate 2 patch files. I expect these two patch files to be identical, but they are not. The reason is that svn diff on Windows generates a file with carriage returns.

What is the easiest way to modify the behavior of svn diff on Windows to match that of svn diff on Linux?

1

There are 1 answers

0
Foosh On BEST ANSWER

In order to get the exact same output on Windows as you would on Linux you can use Cygwin and run svn from that instead of the normal command prompt. This will use a linux-esque version of svn which will generate the patch file with unix line endings while maintaining the line endings of the source file.