hit-0.5.5: Git operations in haskell

Portabilityunix
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellNone

Data.Git.Delta

Description

 

Synopsis

Documentation

data Delta Source

a delta is a source size, a destination size and a list of delta cmd

Constructors

Delta Word64 Word64 [DeltaCmd] 

Instances

data DeltaCmd Source

possible commands in a delta

Instances

deltaParse :: Parser ByteString DeltaSource

parse a delta. format is 2 variable sizes, followed by delta cmds. for each cmd: * if first byte MSB is set, we copy from source. * otherwise, we copy from delta. * extensions are not handled.

deltaRead :: ByteString -> Maybe DeltaSource

read one delta from a lazy bytestring.

deltaApply :: ByteString -> Delta -> ByteStringSource

apply a delta on a lazy bytestring, returning a new bytestring.