# Constants
Version is the Codechain patchfile version this package produces with Diff and the maximum version it can parse with Apply.
# Variables
ErrAddTargetFileExists is returned if an add target file exists already.
ErrDiffLinesNegative is returned if the number of diff lines is negative.
ErrDiffLinesNonPositive is returned if the number of diff lines is non-positive.
ErrDiffLinesParse is returned if the number of diff lines cannot be parsed.
ErrDiffModeUnknown if returned if the diff mode is unknown.
ErrDiffNotClean is returned if no clean diff could be computed.
ErrFileField0 is returned if the file diff line does not start with '-' or '+'.
ErrFileField1 is returned if the file diff line does have mode 'f' or 'x'.
ErrFileFieldsNum is returned if a file diff line does not have 4 space separated fields.
ErrFileHashMismatchAfter is returned if file hash does not match after apply.
ErrFileHashMismatchBefore is returned if file hash does not match before apply.
ErrHeaderFieldsNum is returned if the header does not have 4 space separated fields.
ErrHeaderFieldsText is returned if the header does not start with 'codechain patchfile version'.
ErrHeaderVersion is returned if if the patchfile version is not supported.
ErrMoveTargetFileExists is returned if a move target file exists already.
ErrNoDifference is returned if the two directory trees Apply has been called have the same tree hash.
ErrNotTerminal is returned if more input is read after terminal state.
ErrPrematureDiffEnd is returned if a diff ends prematurely.
ErrPrematurePatchfileEnd is returned if a patchfile ends prematurely.
ErrTreeHashFieldsNum is returned if the tree hash does not have 2 space separated fields.
ErrTreeHashFieldsText is returned if the tree hash does not start with 'codechain patchfile version'.
ErrTreeHashFinishMismatch is returned if directory tree hash does not match the one given in the treehash finish line.
ErrTreeHashStartMismatch is returned if directory tree hash does not match the one given in the treehash start line.