When I use svn diff or git diff it shows lines like:
@@ -1,5 +1,9 @@
What do they mean?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Those are called (c)hunk headers and contain the range information.
They are surrounded by double at signs
@@. They are of the format:where
lis the starting line number andsis the number of lines the change (c)hunk applies to for each respective file. The-indicates the original file and the+indicates the new (modified) file. Note that it not only shows affected lines, but also context lines.The
-1,5is in the original file (indicated by the-). It shows that that first line is the start and 5 affected / context linesThe
+1,9is in the new (modified) file (indicated by the+) and again first line is the start and 9 affected / context lines.More details here: http://en.wikipedia.org/wiki/Diff#Unified_format