Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Time to patch

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:

@@ -1,3 +1,2 @@
 a
-b
 c


Context 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?

Name: Anonymous 2012-07-22 22:09

Because.

Don't change these.
Name: Email:
Entire Thread Thread List