hit-0.6.3: Git operations in haskell

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

Data.Git.Storage.Pack

Contents

Description

 

Synopsis

Documentation

Enumerators of packs

packEnumerate :: FilePath -> IO [Ref] Source

Enumerate the pack refs available in this repository.

Helpers to process packs

packOpen :: FilePath -> Ref -> IO FileReader Source

open a pack

packClose :: FileReader -> IO () Source

close a pack

Command for the content of a pack

packReadHeader :: FilePath -> Ref -> IO Word32 Source

return the number of entries in this pack

packReadMapAtOffset :: FileReader -> Word64 -> (ByteString -> ByteString) -> IO (Maybe Object) Source

read an object at a specific position using a map function on the objectData

packReadAtOffset :: FileReader -> Word64 -> IO (Maybe Object) Source

read an object at a specific position

packReadRawAtOffset :: FileReader -> Word64 -> IO PackedObjectRaw Source

read a raw representation at a specific position

packEnumerateObjects :: FilePath -> Ref -> Int -> (PackedObjectRaw -> IO a) -> IO () Source

enumerate all objects in this pack and callback to f for reach raw objects

turn a packed object into a