Name: Anonymous 2012-07-22 16:53
For a project I am writing a parser for (unix) diff/patch files. Both support two formats, unified and context.
Unified signature is:
Context signature is:
My question being, for the unified, the first character has a special meaning, the source line following directly after. However, for the context, the second character is always a space.
Why?
Unified signature is:
@@ -1,3 +1,2 @@
a
-b
cContext signature is:
****************
*** 1,3 ****
a
- b
c
--- 1,2 ----My question being, for the unified, the first character has a special meaning, the source line following directly after. However, for the context, the second character is always a space.
Why?