git-0.2.2: Git operations in haskell

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunix
Safe HaskellNone
LanguageHaskell98

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
Eq Delta Source # 
Instance details

Defined in Data.Git.Delta

Methods

(==) :: Delta -> Delta -> Bool #

(/=) :: Delta -> Delta -> Bool #

Show Delta Source # 
Instance details

Defined in Data.Git.Delta

Methods

showsPrec :: Int -> Delta -> ShowS #

show :: Delta -> String #

showList :: [Delta] -> ShowS #

data DeltaCmd Source #

possible commands in a delta

Instances
Eq DeltaCmd Source # 
Instance details

Defined in Data.Git.Delta

Show DeltaCmd Source # 
Instance details

Defined in Data.Git.Delta

deltaParse :: Parser Delta Source #

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 Delta Source #

read one delta from a lazy bytestring.

deltaApply :: ByteString -> Delta -> ByteString Source #

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