summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig>2006-04-11 18:41:50 +0000
committerrillig <rillig>2006-04-11 18:41:50 +0000
commitabe4cd127ccbd71fc82801c7a403eccb3d784f6d (patch)
tree07f6b904871df1f8f1dbf88e98c72e5c8d36b0da
parentc1756ad3ee611701d1993c6860a7bc03b92f7256 (diff)
downloadpkgsrc-abe4cd127ccbd71fc82801c7a403eccb3d784f6d.tar.gz
Added an explanation for the state names of the patch file parser.
-rw-r--r--pkgtools/pkglint/files/doc/chap.statemachines.xml14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/doc/chap.statemachines.xml b/pkgtools/pkglint/files/doc/chap.statemachines.xml
index 4142cbc63af..7501e38e1e6 100644
--- a/pkgtools/pkglint/files/doc/chap.statemachines.xml
+++ b/pkgtools/pkglint/files/doc/chap.statemachines.xml
@@ -1,4 +1,4 @@
-<!-- $NetBSD: chap.statemachines.xml,v 1.1 2006/02/26 23:38:07 rillig Exp $ -->
+<!-- $NetBSD: chap.statemachines.xml,v 1.2 2006/04/11 18:41:50 rillig Exp $ -->
<chapter id="statemachines">
<title>State machines</title>
@@ -60,6 +60,18 @@
</mediaobject>
</figure>
+ <para>The states on the left side are for parsing context diffs,
+ the ones on the right side are for unified diffs. Some of the
+ state names are highly abbreviated as follows. The first letter
+ gives the format of the patch, which is <quote>c</quote> for
+ context diffs and <quote>u</quote> for unified diffs. The second
+ letter gives the current syntactical level, which is
+ <quote>f</quote> for a file header, <quote>h</quote> for a hunk
+ header, or <quote>l</quote> for the hunk lines. The third letter
+ describes the action that belongs to the line, which is
+ <quote>a</quote> for an addition, and <quote>d</quote> for a
+ deletion.</para>
+
</sect1>
</chapter>