hit-0.4.0: Git operations in haskell

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

Data.Git.Ref

Description

 

Synopsis

Documentation

data Ref Source

represent a git reference (SHA1)

Instances

fromHex :: ByteString -> RefSource

take a hexadecimal bytestring that represent a reference and turn into a ref

fromHexString :: String -> RefSource

take a hexadecimal string that represent a reference and turn into a ref

fromBinary :: ByteString -> RefSource

transform a bytestring that represent a binary bytestring and returns a ref.

toBinary :: Ref -> ByteStringSource

turn a reference into a binary bytestring

toHex :: Ref -> ByteStringSource

transform a ref into an hexadecimal bytestring

toHexString :: Ref -> StringSource

transform a ref into an hexadecimal string

refPrefix :: Ref -> IntSource

returns the prefix (leading byte) of this reference

cmpPrefix :: String -> Ref -> OrderingSource

compare prefix

toFilePathParts :: Ref -> (String, String)Source

returns the splitted format prefix/suffix for addressing the loose object database

hash :: ByteString -> RefSource

hash a bytestring into a reference