darcs-2.18.1: a distributed, interactive, smart revision control system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Darcs.Repository.Inventory.Format

Synopsis

Documentation

class (Eq h, IsSizeHash h) => ValidHash h where Source #

External API for the various hash types.

Minimal complete definition

dirofValidHash

Methods

dirofValidHash :: h -> HashedDir Source #

The HashedDir belonging to this type of hash

calcValidHash :: ByteString -> h Source #

Compute hash from file content.

data PatchHash Source #

Instances

Instances details
Show PatchHash Source # 
Instance details

Defined in Darcs.Util.ValidHash

ValidHash PatchHash Source # 
Instance details

Defined in Darcs.Util.ValidHash

Eq PatchHash Source # 
Instance details

Defined in Darcs.Util.ValidHash

pokePristineHash :: PristineHash -> ByteString -> Doc Source #

Replace the pristine hash at the start of a raw, unparsed HeadInventory or add it if none is present.

skipPristineHash :: ByteString -> ByteString Source #

skipPristineHash drops the 'pristine: HASH' prefix line, if present.