It's just the unified diff format.
This is command line that produced this output, just to check any special flag:
diff --git a/README.txt b/README.txt
This is the hash of the index and the unix permission (0644
) of the file
index 15827f4..8115e72 100644
This lines tell to what file the -
and +
you will see are referred:
--- a/README.txt
+++ b/README.txt
Here are not that useful, but if you applied diff
to different file names (still remember this is a general format), it could be.
Follows the context, that is to say to which lines the diff is referred (for file -
, line 1
to 4
; for file +
, line 1
to 2
):
@@ -1,4 +1,2 @@
the context might also include the name of the function in which the change is located, so that diff
can work even if you have further modified the file, as long as the point in which to apply the change can be located.
Finally, this is the changeset:
this file
adding like
-line 3
-
which means that you have removed those two lines, since they are in the -
(old) file, but not in the new one (there is no +
line).