Subversion: how to interpret diff results?

I just started using svn. When compared to files using the svn diff , the output seems very strange. How to intepret diff output? I tried svn diff help but said nothing about the exit (or I did not understand).

+5
source share
2 answers

Do you use the command line? You should probably install GUI tools like Tortoise SVN, which will be much easier to understand.

The command line output "svn diff" is not intended for human reading, rather you will feed it into a program that understands this output (usually this program will show you two windows of the text editor with the old and new files and highlight the differences).

Basically, the SVN DIFF output shows the position of a character and line and the text that has changed between files.

0
source

@juur,

The svn diff command produces this output by comparing your work files with cached "pristine" copies in the .svn area. Files scheduled for addition are displayed as all added texts, and files scheduled for deletion are displayed as all deleted texts.

The output is displayed in a unified demarcation format. That is, deleted lines are preceded by -, and added lines are preceded by +. svn diff also prints the file name and offset information, useful for the patch program, so you can create "fixes" by redirecting the diff output to a file

You can check out more information on how svn diff works in the SVN Book .

0
source

All Articles